summaryrefslogtreecommitdiff
path: root/29/CH12/EX12.23.iii/exa12_23_iii.sce
blob: de1fd6f1cf076116ae2ce18c5b27a75e7f336d69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//caption:stability_using_Nyquist_criterion
//example 12_23_iii
//page 535
disp("for K=10")
g=(10*(s+10)*(s+40))/(s*(s+1)*(s+4));
g1=(10*(s1+10)*(s1+40))/(s1*(s1+1)*(s1+4));
GH=syslin('c',g);
GH1=syslin('c',g1);
nyquist(GH);
nyquist(GH1);
//mtlb_axis([-1.5 0.2 -0.3 0.3]);
xtitle('Nyquist plot of (0.1*(s+10)*(s+40))/(s*(s+1)*(s+4))')
figure;
show_margins(GH,'nyquist')
disp("since the point(-1+%i0) is encircled once in clockwise and once in anti clockwise direction by Nyquist plot ,so N=0 and P=0")
N=0;//no. of encirclement of -1+%i0 by G(s)H(s) plot anticlockwise
P=0;//no. of poles of G(s)H(s) with positive real part
Z=P-N;//np.of zeros of 1+G(s)H(s)=0 with positive real part
disp(Z,"Z=")
disp("as Z=0,there are no roots of closed loop characterstics eq having positive real part, hence system is stable.")