laplace(syms) leads to incorrect answer?

1 view (last 30 days)
Ryan Parker
Ryan Parker on 20 Apr 2019
Commented: Walter Roberson on 20 Apr 2019
This code nicely demonstrates my confusion:
syms t real
f=heaviside(t+1)
laplace(f)
f=heaviside(t-1)
laplace(f)
Producing the output:
f =
heaviside(t + 1)
ans =
1/s
f =
heaviside(t - 1)
ans =
exp(-s)/s
The first laplace should return exp(s)/s, yet matlab transforms as if there is not time shift?
  2 Comments
David Wilson
David Wilson on 20 Apr 2019
Might be somethng to do with the one-sided or two-sided definitions of the Laplace transform.

Sign in to comment.

Answers (0)

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!