Laplace of Constant a

23 次查看(过去 30 天)
Jeff Lee
Jeff Lee 2019-10-9
评论: Star Strider 2020-12-15
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

采纳的回答

Star Strider
Star Strider 2019-10-9
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
  4 个评论
Cosmas Kwalira-Phiri
Thanks you have helped me too
Star Strider
Star Strider 2020-12-15
Cosmas Kwalira-Phiri —
My pleasure!
Thanks for the Vote!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by