diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /773/CH15 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '773/CH15')
-rwxr-xr-x | 773/CH15/EX15.01/15_01.sci | 7 | ||||
-rwxr-xr-x | 773/CH15/EX15.02/15_02.sci | 8 | ||||
-rwxr-xr-x | 773/CH15/EX15.03/15_03.sci | 8 | ||||
-rwxr-xr-x | 773/CH15/EX15.04/15_04.sci | 8 | ||||
-rwxr-xr-x | 773/CH15/EX15.05/15_05.sci | 8 | ||||
-rwxr-xr-x | 773/CH15/EX15.06/15_06.sci | 9 | ||||
-rwxr-xr-x | 773/CH15/EX15.07/15_07.sci | 11 | ||||
-rwxr-xr-x | 773/CH15/EX15.08/15_08.sci | 12 |
8 files changed, 71 insertions, 0 deletions
diff --git a/773/CH15/EX15.01/15_01.sci b/773/CH15/EX15.01/15_01.sci new file mode 100755 index 000000000..794b43601 --- /dev/null +++ b/773/CH15/EX15.01/15_01.sci @@ -0,0 +1,7 @@ +//system//
+s=%s;
+sys=syslin('c',1/(s+2))
+nyquist(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")
+
diff --git a/773/CH15/EX15.02/15_02.sci b/773/CH15/EX15.02/15_02.sci new file mode 100755 index 000000000..6c4f40dcd --- /dev/null +++ b/773/CH15/EX15.02/15_02.sci @@ -0,0 +1,8 @@ +//system//
+s=%s;
+sys=syslin('c',1/(s*(s+2)))
+nyquist(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")
+
+
diff --git a/773/CH15/EX15.03/15_03.sci b/773/CH15/EX15.03/15_03.sci new file mode 100755 index 000000000..607e34474 --- /dev/null +++ b/773/CH15/EX15.03/15_03.sci @@ -0,0 +1,8 @@ +//system//
+s=%s;
+sys=syslin('c',1/(s^2*(s+2)))
+nyquist(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 not equal to zero \n hence the system is unstable")
+
+
diff --git a/773/CH15/EX15.04/15_04.sci b/773/CH15/EX15.04/15_04.sci new file mode 100755 index 000000000..c78dbbf83 --- /dev/null +++ b/773/CH15/EX15.04/15_04.sci @@ -0,0 +1,8 @@ +//system//
+s=%s;
+sys=syslin('c',1/(s^3*(s+2)))
+nyquist(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 N>0 \n hence the system is unstable")
+
+
diff --git a/773/CH15/EX15.05/15_05.sci b/773/CH15/EX15.05/15_05.sci new file mode 100755 index 000000000..76e909b1f --- /dev/null +++ b/773/CH15/EX15.05/15_05.sci @@ -0,0 +1,8 @@ +//system//
+s=%s;
+sys=syslin('c',1/(s^2*(s+2)))
+nyquist(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 N>0 \n hence the system is unstable")
+
+
diff --git a/773/CH15/EX15.06/15_06.sci b/773/CH15/EX15.06/15_06.sci new file mode 100755 index 000000000..82a1fb09e --- /dev/null +++ b/773/CH15/EX15.06/15_06.sci @@ -0,0 +1,9 @@ +//system//
+s=%s;
+P1=1;
+P2=2;
+sys=syslin('c',1/((s+1)*(s+2)))
+nyquist(sys)
+show_margins(sys,'nyquist')
+printf("Since P=0(no of poles in RHP)=Poles of G(s)H(s) \n\n Here the number of zeros of 1+G(s)H(s) in the RHP is zero \n\n Hence the system is stable")
+
diff --git a/773/CH15/EX15.07/15_07.sci b/773/CH15/EX15.07/15_07.sci new file mode 100755 index 000000000..60f2b9ac7 --- /dev/null +++ b/773/CH15/EX15.07/15_07.sci @@ -0,0 +1,11 @@ +//system//
+s=%s;
+sys=syslin('c',12/(s*(s+1)*(s+2)))
+nyquist(sys)
+show_margins(sys,'nyquist')
+gm=g_margin(sys)
+if (gm<=0)
+ printf("system is unstable")
+else
+printf("system is stable");end;
+
diff --git a/773/CH15/EX15.08/15_08.sci b/773/CH15/EX15.08/15_08.sci new file mode 100755 index 000000000..0bcce5e47 --- /dev/null +++ b/773/CH15/EX15.08/15_08.sci @@ -0,0 +1,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
|