summaryrefslogtreecommitdiff
path: root/773/CH15/EX15.08/15_08.sci
blob: 0bcce5e479bece212b2a4f9f815f20e6cde81e84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//system//
s=%s;
sys=syslin('c',(30)/((s^2+2*s+2)*(s+3)))
nyquist(sys)
gm=g_margin(sys)
show_margins(sys,'nyquist')
printf("Since P=0(no of poles in RHP)=Poles of G(s)H(s) \n Here the number of zeros of 1+G(s)H(s) in the RHP is zero \n Hence the system is stable")     
if (gm<=0)
  printf("system is unstable")
else 
  printf("system is stable")
  end