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.
F1 = laplace(f1)
F1 =

F2 = laplace(f2)
F2 =

F3 = laplace(f3)
F3 =

F4 = laplace(f4)
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!