summaryrefslogtreecommitdiff
path: root/Completed Simulations/Control Systems by Nagrath and Gopal/Scilab/Ex9_6.sci
diff options
context:
space:
mode:
authorSiddharth Agarwal2019-09-03 18:27:40 +0530
committerSiddharth Agarwal2019-09-03 18:27:40 +0530
commit8ac15bc5efafa2afc053c293152605b0e6ae60ff (patch)
treee1bc17aae137922b1ee990f17aae4a6cb15b7d87 /Completed Simulations/Control Systems by Nagrath and Gopal/Scilab/Ex9_6.sci
parent52a477ec613900885e29c4a0b02806a415b4f83a (diff)
downloadXcos_block_examples-8ac15bc5efafa2afc053c293152605b0e6ae60ff.tar.gz
Xcos_block_examples-8ac15bc5efafa2afc053c293152605b0e6ae60ff.tar.bz2
Xcos_block_examples-8ac15bc5efafa2afc053c293152605b0e6ae60ff.zip
Xcos examples from textbooks and for blocksHEADmaster
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