summaryrefslogtreecommitdiff
path: root/104/CH9/EX9.14/9_14.sce
diff options
context:
space:
mode:
Diffstat (limited to '104/CH9/EX9.14/9_14.sce')
-rwxr-xr-x104/CH9/EX9.14/9_14.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/104/CH9/EX9.14/9_14.sce b/104/CH9/EX9.14/9_14.sce
new file mode 100755
index 000000000..21fd8dc55
--- /dev/null
+++ b/104/CH9/EX9.14/9_14.sce
@@ -0,0 +1,9 @@
+//gain margin and phase margin
+s=%s;
+sys=syslin('c',(2500)/(s*(s+5)*(s+50)))
+nyquist(sys)
+show_margins(sys,'nyquist')
+gm=g_margin(sys)
+pm=p_margin(sys)
+disp(gm,"gain margin=")
+disp(pm,"phase margin=") \ No newline at end of file