summaryrefslogtreecommitdiff
path: root/29/CH7/EX7.19.3/exa7_19_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '29/CH7/EX7.19.3/exa7_19_3.sce')
-rwxr-xr-x29/CH7/EX7.19.3/exa7_19_3.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/29/CH7/EX7.19.3/exa7_19_3.sce b/29/CH7/EX7.19.3/exa7_19_3.sce
new file mode 100755
index 000000000..e30d85fb1
--- /dev/null
+++ b/29/CH7/EX7.19.3/exa7_19_3.sce
@@ -0,0 +1,15 @@
+//caption:stability_using_bode_plot
+//example 7.19.3
+//page 283
+s=%s;
+g=(48*(s+10))/(s*(s+20)*(s^2+2.4*s+16));
+G=syslin('c',g)
+fmin=0.01;
+fmax=100;
+bode(G, fmin, fmax)
+show_margins(G)
+gm=g_margin(G)
+pm=p_margin(G)
+disp(gm,"gain_margin=");
+disp(pm,"phase_margin=");
+disp("since gain and phase margin are both positive so system is stable") \ No newline at end of file