Undefined function 'laplace' for input arguments of type 'double'.
5 views (last 30 days)
Show older comments
Syed Adeel
on 17 Apr 2020
Commented: Syed Adeel
on 19 Apr 2020
I want to take the place of noise generated through randn function but it gives followung error. Is it possible to take laplace of Noise vector. For example
noisevec = 0.55e-1 * sqrt (0.707) * randn ((1,100))
y = laplace (noisevec)
0 Comments
Accepted Answer
Walter Roberson
on 17 Apr 2020
laplace() is only defined for symbolic values.
With numeric noisevec, if you were to use
y = laplace(sym(noisevec))
you would find that the answer would be the same as
sym(noisevec)/s
laplace() is mostly intended for formula, not for numeric values. Each entry in the array would be treated independently as if it were a distinct formula. MATLAB does not provide a discrete laplace transform.
There are connections to the Z transform
More Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!