summaryrefslogtreecommitdiff
path: root/Completed Simulations/Control Systems by Nagrath and Gopal/Scilab/Ex9_10.sci
diff options
context:
space:
mode:
Diffstat (limited to 'Completed Simulations/Control Systems by Nagrath and Gopal/Scilab/Ex9_10.sci')
-rw-r--r--Completed Simulations/Control Systems by Nagrath and Gopal/Scilab/Ex9_10.sci10
1 files changed, 10 insertions, 0 deletions
diff --git a/Completed Simulations/Control Systems by Nagrath and Gopal/Scilab/Ex9_10.sci b/Completed Simulations/Control Systems by Nagrath and Gopal/Scilab/Ex9_10.sci
new file mode 100644
index 0000000..8dd16c1
--- /dev/null
+++ b/Completed Simulations/Control Systems by Nagrath and Gopal/Scilab/Ex9_10.sci
@@ -0,0 +1,10 @@
+function y=nqst10(z)
+s=%s
+H=syslin('c',1/(s*(0.2*s+1)*(0.05*s+1)))
+nyquist(H)
+show_margins(H,'nyquist')
+mtlb_axis([-1 1 -5 1])
+gm=g_margin(H)
+pm=p_margin(H)
+y=0;
+endfunction