F1 =
Issue with Laplace Transform for Exponential Functions in MATLAB
Afficher commentaires plus anciens
Hello everyone,
I'm encountering an issue while trying to compute the Laplace transform of exponential functions in MATLAB using the laplace command. Specifically, when I input an exponential function directly (e.g., f = 2^(-t)), the command does not return a meaningful result. However, if I rewrite the exponential function using the exp function (e.g., exp(-log(2)*t)), the Laplace transform works as expected.
Could someone explain why this discrepancy occurs? Is there a specific syntax or method I should follow to ensure that MATLAB computes the Laplace transform of exponential functions directly, without needing to use exp?
Interestingly, if f = exp(1)^(-t), the laplace command does not work either.
syms t real
f1 = 2^(-t);
f2 = exp(-log(2)*t);
f3 = exp(1)^(-t);
f4 = exp(-t);
F1 = laplace(f1)
F2 = laplace(f2)
F3 = laplace(f3)
F4 = laplace(f4)
I've found some discussion online about this issue, but it wasn't particularly helpful. Here's the link to what I found: MathWorks Discussion.
Thanks in advance for your help!
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Common Operations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!










