summaryrefslogtreecommitdiff
path: root/1340/CH8/EX8.7
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1340/CH8/EX8.7
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1340/CH8/EX8.7')
-rwxr-xr-x1340/CH8/EX8.7/8_7.jpgbin0 -> 61488 bytes
-rwxr-xr-x1340/CH8/EX8.7/8_7.sce20
2 files changed, 20 insertions, 0 deletions
diff --git a/1340/CH8/EX8.7/8_7.jpg b/1340/CH8/EX8.7/8_7.jpg
new file mode 100755
index 000000000..9ca561c85
--- /dev/null
+++ b/1340/CH8/EX8.7/8_7.jpg
Binary files differ
diff --git a/1340/CH8/EX8.7/8_7.sce b/1340/CH8/EX8.7/8_7.sce
new file mode 100755
index 000000000..2050581b2
--- /dev/null
+++ b/1340/CH8/EX8.7/8_7.sce
@@ -0,0 +1,20 @@
+clear; clc;
+xdel(winsid()); //close all windows
+s = %s;
+G = syslin('c',(s^2-4*s+20)/((s+2)*(s+4)));
+zeroes = roots(numer(G));
+disp(zeroes,"zeroes are:");
+poles = roots(denom(G));
+disp(poles,"poles are:");
+evans(G,10);
+v = [-6 6 -6 6];
+mtlb_axis(v)
+sgrid([0.45,0],[0],32);//displays the zeta = 0,0.45 line
+curve_handles=datatipGetEntities()//gets the entities required
+curve_handles.visible='off';
+curve_handles.visible='on';
+zeta = 0.45;//damping ratio = 0.45
+anglezeta = (%pi-acos(0.45))*180/%pi;
+disp(anglezeta,"angle made by the line with zeta = 0.45 to the root locus:");
+printf("from root locus plotwe have for stable system gain K =(0,1.5)");
+