diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3432/CH7/EX7.27 | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-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/CH7/EX7.27')
-rw-r--r-- | 3432/CH7/EX7.27/Ex7_27.sce | 41 | ||||
-rw-r--r-- | 3432/CH7/EX7.27/Ex7_27_f0.pdf | bin | 0 -> 31033 bytes |
2 files changed, 41 insertions, 0 deletions
diff --git a/3432/CH7/EX7.27/Ex7_27.sce b/3432/CH7/EX7.27/Ex7_27.sce new file mode 100644 index 000000000..8c3c51a9a --- /dev/null +++ b/3432/CH7/EX7.27/Ex7_27.sce @@ -0,0 +1,41 @@ +//Example 7.27
+// SRL estimator design for a simple pendulum
+
+xdel(winsid())//close all graphics Windows
+clear;
+clc;
+//------------------------------------------------------------------
+// State space representation
+F=[0 1; -1 0];
+G=[0 1]';
+H=[1 0];
+J=0;
+
+//Transfer function
+sys=syslin('c',F,G,H,J)
+sysGG=ss2tf(sys)
+
+//Symmetric root locus for the inverted pendulum estimator design
+//------------------------------------------------------------------
+//Root locus design
+evans(sysGG*sysGG)
+zoom_rect([-5 -5 5 5])
+f=gca();
+f.x_location = "origin"
+f.y_location = "origin"
+xset("color",2);
+h=legend('');
+h.visible = "off"
+//Title, labels and grid to the figure
+exec .\fig_settings.sci; // custom script for setting figure properties
+title('Symmetric root locus for inverted the pendulum estimator design',...
+'fontsize',3);
+//------------------------------------------------------------------
+//pole locations for q=365; p=-3+-j3.18
+p=[-3+3.18*%i -3-3.18*%i]
+sig=real(p);
+omega=imag(p);
+plot(sig,omega,'ro')
+xstring(-4,1,["pole location at";"q=365"])
+xarrows([-3.5;-3.05],[2;3.1],-1.5,1)
+//------------------------------------------------------------------
diff --git a/3432/CH7/EX7.27/Ex7_27_f0.pdf b/3432/CH7/EX7.27/Ex7_27_f0.pdf Binary files differnew file mode 100644 index 000000000..ad30cd949 --- /dev/null +++ b/3432/CH7/EX7.27/Ex7_27_f0.pdf |