summaryrefslogtreecommitdiff
path: root/1499/CH5/EX5.29/s29.sce
diff options
context:
space:
mode:
Diffstat (limited to '1499/CH5/EX5.29/s29.sce')
-rw-r--r--1499/CH5/EX5.29/s29.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/1499/CH5/EX5.29/s29.sce b/1499/CH5/EX5.29/s29.sce
new file mode 100644
index 000000000..b0b7c6136
--- /dev/null
+++ b/1499/CH5/EX5.29/s29.sce
@@ -0,0 +1,9 @@
+s=%s;
+H=syslin('c',1/((s+4)*(s+2)))
+nyquist(H)
+show_margins(H,'nyquist')
+printf("Since P=1 and the pt. -1+j0 is encircled once by the locus")
+printf("Hence N=1 therefore, Z=0(no of zeros in RHP)")
+printf("System is stable")
+gm=g_margin(H) // gain margin
+pm=p_margin(H) // phase margin