summaryrefslogtreecommitdiff
path: root/773/CH13/EX13.01
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /773/CH13/EX13.01
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 '773/CH13/EX13.01')
-rwxr-xr-x773/CH13/EX13.01/13_01.sci10
1 files changed, 10 insertions, 0 deletions
diff --git a/773/CH13/EX13.01/13_01.sci b/773/CH13/EX13.01/13_01.sci
new file mode 100755
index 000000000..6a775fc3b
--- /dev/null
+++ b/773/CH13/EX13.01/13_01.sci
@@ -0,0 +1,10 @@
+//polynomial//
+s=poly(0,'s'); //Defines s as polynomial variable
+F=syslin('c',[20/(s+2)]) //Creates transfer function in forward path
+B=syslin('c',(1+0*s)/(1+0*s)) //Creates transfer function in backward path
+OL=F*B //Calculates open-loop transfer function
+fmin=0.1; //Min freq in Hz
+fmax=100; //Max freq in Hz
+scf(1);clf;
+bode(OL,fmin,fmax); //Plots frequency response of open-loop system in Bode diagram
+show_margins(OL) //display gain and phase margin and associated crossover frequencies