How do I change the output of Matlab when using inverse Laplace?

$\begingroup$

Here is my input:

syms s
F = (2+2*s*(exp(-s))+4*(exp(-2*s)))/(s^2)*(s^2+2*s+10);
ilaplace(F)

An the output is :

20*t + 4*dirac(t - 1) + 4*dirac(t - 2) + 20*heaviside(t - 1) + 8*heaviside(t - 2) + 2*dirac(t) + 2*dirac(1, t - 1) + 40*heaviside(t - 2)*(t - 2) + 4`

Can I change it to see it in terms of cos and sin?

Edit: I have changed my input to

s/(s^4 + 2*s^3 + 10*s^2)

The new output is:

1/10 - (exp(-t)*(cos(3*t) + sin(3*t)/3))/10

Unfortunately, I still haven't found a way to do the entire function at once without removing the "exp".

$\endgroup$ 3 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like