Undefined function 'laplace' for input arguments of type 'double'.

5 views (last 30 days)
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)

Accepted Answer

Walter Roberson
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)

Products


Release

R2016a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!