Laplace of Constant a

26 vues (au cours des 30 derniers jours)
Jeff Lee
Jeff Lee le 9 Oct 2019
Commenté : Star Strider le 15 Déc 2020
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

Réponse acceptée

Star Strider
Star Strider le 9 Oct 2019
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 commentaires
Cosmas Kwalira-Phiri
Cosmas Kwalira-Phiri le 15 Déc 2020
Thanks you have helped me too
Star Strider
Star Strider le 15 Déc 2020
Cosmas Kwalira-Phiri —
My pleasure!
Thanks for the Vote!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by