summaryrefslogtreecommitdiff
path: root/3885/CH5/EX5.9/Ex5_9.sci
blob: d9b5660bde06b1eb70edd3cc802a9ee459d7b064 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//control systems by Nagoor Kani A
//Edition 3
//Year of publication 2015
//Scilab version 6.0.0
//operating systems windows 10
// Example 5.9

clc;
clear; 
s=poly(0,'s')
//the close loop tranfer function is K/s*(s+1)*(s+2)+K
a=(s^3)+(3*s^2)+(2*s)+1//the characterstic equation assuming K=1
b=coeff(a)
n=length(b)
R=routh_t(a)
disp(R,'the routh array is;')
disp('the valus of K lies between 0 to6 for the system to be stable')