Here's the code:
syms t s
f = -3*t*exp(-t);
F = laplace(f, t, s);
To graph the result in the time domain, we can use the inverse Laplace transform. Here's the code:
f_time = ilaplace(F, s, t);
t_values = linspace(0, 10, 100);
f_values = subs(f_time, t,
Show more…