MATLAB: Laplace of Constant a

laplace of constant a

Hi,
I can't get Matlab to return the correct answer for a single constant. Lest say a
For example
f(t)=1
LT f(t) =1/s
However what I change 1 to a constant matlab return the incorrect answer
Why does matlab not like the constant? As the laplace inverse of 1/s^2 = t

Best Answer

You must tell the laplace function what the independent variable and transformation variable are. It has no way of knowing, otherwise.
Using your example:
syms a s t
f1 = (a*t)/t
F1 = laplace(f1,t,s)
producing:
f1 =
a
F1 =
a/s
Related Question