diff options
Diffstat (limited to '773/CH13/EX13.01/13_01.sci')
-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
|