blob: d5327b7650fa5a9a5e7e13ae6338d6f173e46c43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//control systems by Nagoor Kani A
//Edition 3
//Year of publication 2015
//Scilab version 6.0.0
//operating systems windows 10
// Example 5.28
clc;
clear;
s=poly(0,'s')//defines s as poly nomial variable
h=syslin('c',(s+2)/(s+1)*(s-1))//the given transfer function assigned to variable h
scf()
nyquist(h)
show_margins(h,'nyquist')
disp('open loop system is unstable')
disp('closed loop system is stable;' )
|