summaryrefslogtreecommitdiff
path: root/3432/CH6/EX6.10
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3432/CH6/EX6.10
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3432/CH6/EX6.10')
-rw-r--r--3432/CH6/EX6.10/Ex6_10.sce46
-rw-r--r--3432/CH6/EX6.10/Ex6_10_f0.pdfbin0 -> 19822 bytes
-rw-r--r--3432/CH6/EX6.10/Ex6_10_f1.pdfbin0 -> 24942 bytes
3 files changed, 46 insertions, 0 deletions
diff --git a/3432/CH6/EX6.10/Ex6_10.sce b/3432/CH6/EX6.10/Ex6_10.sce
new file mode 100644
index 000000000..f1f5c205f
--- /dev/null
+++ b/3432/CH6/EX6.10/Ex6_10.sce
@@ -0,0 +1,46 @@
+//Example 6.10
+// Nyquist plot for an Open-loop unstable system.
+
+xdel(winsid())//close all graphics Windows
+clear;
+clc;
+//------------------------------------------------------------------
+//System transfer function
+s=poly(0,'s');
+sysG=(s+1)/(s*(s/10-1));
+evans(sysG,50)
+exec .\fig_settings.sci; //custom script for setting figure properties
+title(["Root Locus for","$G(s)=(s+1)/[s(s/10-1)]$"],'fontsize',3)
+zoom_rect([-5 -4 5 4])
+f=gca();
+f.x_location = "origin"
+f.y_location = "origin"
+h=legend('');
+h.visible = "off"
+
+g1=syslin('c',(s+1)/(s*(s/10-1)));
+//------------------------------------------------------------------
+//The bode plot of the system
+figure;
+bode(g1,0.1/2/%pi,100/2/%pi,"rad")
+exec .\fig_settings.sci; //custom script for setting figure properties
+title(["Bode plot for","$G(s)=(s+1)/[s(s/10-1)]$"],'fontsize',3)
+//bode(g,2*%pi*0.1,2*%pi*100)
+//------------------------------------------------------------------
+figure;
+//The nyquist plot of the system
+nyquist(g1,0.5/2/%pi,100/2/%pi,0.05)
+exec .\fig_settings.sci; //custom script for setting figure properties
+title(["Nyquist plot for","$G(s)=(s+1)/[s(s/10-1)]$"],'fontsize',3)
+f=gca();
+f.x_location = "origin";
+f.y_location = "origin";
+zoom_rect([-2 -2 1 2]);
+xset("color",2);
+xset("font size", 3);
+xstring(-1,1.5,"${\fgcolor{blue}{\omega>0}}$",0,0);
+xstring(-1,-1.5,"${\fgcolor{blue}{\omega<0}}$",0,0);
+xstring(-1.5,0,"${\fgcolor{blue}{\omega=\pm \sqrt{10}}}$",0,0);
+xstring(-0.5,0.1,"${\fgcolor{blue}{\omega=\infty}}$",0,0);
+xarrows([-0.2;0],[0.2;0],-1,2)
+//------------------------------------------------------------------
diff --git a/3432/CH6/EX6.10/Ex6_10_f0.pdf b/3432/CH6/EX6.10/Ex6_10_f0.pdf
new file mode 100644
index 000000000..36c7a5102
--- /dev/null
+++ b/3432/CH6/EX6.10/Ex6_10_f0.pdf
Binary files differ
diff --git a/3432/CH6/EX6.10/Ex6_10_f1.pdf b/3432/CH6/EX6.10/Ex6_10_f1.pdf
new file mode 100644
index 000000000..b0d811d78
--- /dev/null
+++ b/3432/CH6/EX6.10/Ex6_10_f1.pdf
Binary files differ