344 Use MATLAB to find the Laplace transform of these functi
3.44 Use MATLAB to find the Laplace transform of these functions fort (a) r3 + 2 + 21-4 (b) t cos 3t (c) e-\'sin2t
Solution
>> syms x t
>> f=(t^3+t^2+2*t-4);
>> laplace(f)
ans =
2/s^2 - 4/s + 2/s^3 + 6/s^4
>> f=t*cos(3*t);
>> laplace(f)
ans =
(2*s^2)/(s^2 + 9)^2 - 1/(s^2 + 9)
>> f=exp(-t)*sin(2*t);
>> laplace(f)
ans =
2/((s + 1)^2 + 4)
