Program with Scilab.
t=0:0.1:5;
ft=t.*exp(-t).*sin(5*t);
s=%s;
fs=10*(s+1)/((s+1)^2+5^2)^2;
fs2=syslin('c',fs);
fs1=csim('impulse',t,fs2);
clf;
subplot(2,1,1);
plot2d(t,ft,2);
xtitle('Phrasing');
xgrid;
subplot(2,1,2);
plot2d(t,fs1,1);
xtitle('Solution');
xgrid;
|
|