summaryrefslogtreecommitdiff
path: root/1499/CH5/EX5.6
diff options
context:
space:
mode:
Diffstat (limited to '1499/CH5/EX5.6')
-rw-r--r--1499/CH5/EX5.6/q6.pngbin0 -> 3460 bytes
-rw-r--r--1499/CH5/EX5.6/q6.sce21
2 files changed, 21 insertions, 0 deletions
diff --git a/1499/CH5/EX5.6/q6.png b/1499/CH5/EX5.6/q6.png
new file mode 100644
index 000000000..c52607947
--- /dev/null
+++ b/1499/CH5/EX5.6/q6.png
Binary files differ
diff --git a/1499/CH5/EX5.6/q6.sce b/1499/CH5/EX5.6/q6.sce
new file mode 100644
index 000000000..e1daf7555
--- /dev/null
+++ b/1499/CH5/EX5.6/q6.sce
@@ -0,0 +1,21 @@
+s=%s;
+syms K;
+g=(K/(s^2);
+// given K=10
+K=10;
+
+
+g=(5/(s^2));
+
+G=syslin('c',g)
+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=");