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/CH13/EX13.01 | |
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/CH13/EX13.01')
-rwxr-xr-x | 773/CH13/EX13.01/13_01.sci | 10 |
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
|