summaryrefslogtreecommitdiff
path: root/Completed Simulations/Control Systems by Nagrath and Gopal/Scilab/Ex9_6.sci
diff options
context:
space:
mode:
Diffstat (limited to 'Completed Simulations/Control Systems by Nagrath and Gopal/Scilab/Ex9_6.sci')
-rw-r--r--Completed Simulations/Control Systems by Nagrath and Gopal/Scilab/Ex9_6.sci10
1 files changed, 10 insertions, 0 deletions
diff --git a/Completed Simulations/Control Systems by Nagrath and Gopal/Scilab/Ex9_6.sci b/Completed Simulations/Control Systems by Nagrath and Gopal/Scilab/Ex9_6.sci
new file mode 100644
index 0000000..5d47081
--- /dev/null
+++ b/Completed Simulations/Control Systems by Nagrath and Gopal/Scilab/Ex9_6.sci
@@ -0,0 +1,10 @@
+function y=nqst6(z)
+s=%s
+H=syslin('c',(s-2)/(s+1)^2)
+nyquist(H)
+y=0;
+show_margins(H,'nyquist')
+printf("P=0(poles in RHP)")
+printf("N=-1,hence Z=1")
+printf("Therefore,System is unstable")
+endfunction