diff options
Diffstat (limited to '1499/CH5/EX5.20/s20.sce')
-rw-r--r-- | 1499/CH5/EX5.20/s20.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/1499/CH5/EX5.20/s20.sce b/1499/CH5/EX5.20/s20.sce new file mode 100644 index 000000000..e0ac18b83 --- /dev/null +++ b/1499/CH5/EX5.20/s20.sce @@ -0,0 +1,18 @@ +s=%s;
+
+
+syms K
+h=syslin('c',(K/(s*(s+1)*(0.1*s+1))))
+
+H=syslin('c',h)
+fmin=0.001;
+fmax=1000;
+bode(G,fmin,fmax)
+show_margins(G)
+xtitle("uncompensated system")
+[gm,freqGM]=g_margin(G)
+[pm,freqPM]=p_margin(G)
+disp(gm,"gain_margin=")
+disp((freqGM*2*%pi),"gain margin freq=");
+disp(pm,"phase margin=")
+disp((freqPM*2*%pi),"phase margin freq=");
|