summaryrefslogtreecommitdiff
path: root/1499/CH2/EX2.9/q9_impulse.sce
blob: 303aa9fdd3ed3d6e6a3ca0854e8e380248ec4e68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12


s=%s; // first create a variable
num=2*s+1;
den=s^2;
TF=syslin('c',num,den)

t=linspace(0,5,500);
imp_res=csim('imp',t,TF);
plot(t,imp_res)
xgrid()
xtitle('Impulse response','time','response');