summaryrefslogtreecommitdiff
path: root/1340/CH4/EX4.8/4_8.sce
blob: 2a50f84c3d69be9bd8e8e05f292ff9c72813a756 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clc;
t = 0:0.05:3;
s = %s;
T1 = 24.542/(s^2+4*s+24.542);
T2 = 245.42/((s+10)*(s^2+4*s+24.542));
T3 = 73.626/((s+3)*(s^2+4*s+24.542));
f1 = syslin('c',T1);
f2 = syslin('c',T2);
f3 = syslin('c',T3);
c1 = csim('step',t,f1);
c2 = csim('step',t,f2);
c3 = csim('step',t,f3);plot(t,c1,t,c2,t,c3);
legend("c1","c2","c3");
printf("c2 is a better approximation of c1 as the pole =-10 is far from dominant poles");