Laplace of Constant a
26 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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
0 commentaires
Réponse acceptée
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
Plus de réponses (0)
Voir également
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!