diff options
Diffstat (limited to '46/CH14/EX14.2')
-rwxr-xr-x | 46/CH14/EX14.2/Example14_2.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/46/CH14/EX14.2/Example14_2.sce b/46/CH14/EX14.2/Example14_2.sce new file mode 100755 index 000000000..183ea422e --- /dev/null +++ b/46/CH14/EX14.2/Example14_2.sce @@ -0,0 +1,18 @@ +//Example 14.2 +clear; +clc +h=poly([2,4,5,3,1],'s','coeff'); +r=routh_t(h) +//Since there is no change in sign in the first column, there are no roots having positive real parts, and the system is stable. +y=coeff(h); +n=length(y); +c=0; +for i=1:n +if (r(i,1)<0) +c=c+1; +end +end +if(c>=1) +printf("system is unstable") +else ("system is stable") +end
\ No newline at end of file |