Professional Documents
Culture Documents
Lab 08 PDF
Lab 08 PDF
Section: …………………………………………………………
Remarks: …………………………………………………
Objectives: The objectives of this lab are to analyze the stability of the system with Routh-
Hurwitz criterion when transfer function of the system is known. How can we check the
stability of the system when its State Space Model is given?
Routh-Hurwitz Criterion:
By this method we can find the number of poles in each section of the s-plane, but we cannot
find their exact coordinates in s-plane.
Generating Routh Table
Consider the closed-loop transfer function of a system is given by
We first create the initial layout for Routh table shown in Table 11.1below
Example 1: Now consider the closed loop system given in Figure 11.3 (a). Create a Routh
Table for the system shown in Figure 11.3(a) and analyze its stability.
Solution: First, we have to find the equivalent closed-loop system because we want to test
the denominator of this function. Using feedback formula, we obtain the equivalent system
in Figure 11.3(b). Then we create the initial layout of Routh table and Table 11.3 is the
completed Routh table.
If the closed-loop transfer function has all poles in the left half of the s-plane, the system is
stable. Thus, a system is stable if there are no sign changes in the first column of the Routh
table.
For example, Table 11.3 has two sign changes in the first column. The first sign change
occurs from 1 in the s2 row to –72 in the s1 row. The second occurs from –72 in the s1 row to
103 in the s0 row. Thus, the system of Figure 11.1(a) is unstable since two poles exist in the
right half of the s-plane.
Example 2: Determine the stability of the closed-loop transfer function given below.
10
T (s)
s 2 s 3s 3 6 s 2 5s 3
5 4
Table 11.4b shows the first column of Table 11.4a, along with the resulting signs for a
choice of 𝜖 positive and 𝜖 negative.
Conclusion: We can see, if we choose 𝜖 positive or negative, Table 11.4b will show two
sign changes for both conditions. Hence, the system is unstable and has two poles in the right
half-plane.
Example 4: Write a Generic Matlab Code that takes the characteristic polynomial of system
as an input and display the Roots, Routh Table, number of poles in right half plane and
System’s stability.
Solution:
%==========================================================================
% Routh-Hurwitz Stability Criterion
%==========================================================================
clc;
disp(' ')
D=input('Input coefficients of characteristic equation, i.e:[an an-1 an-2
... a0]= ');
L=length (D);
disp(' ')
disp('----------------------------------------')
disp('Roots of characteristic equation are: '),
disp(roots(D));
%%=======================Program Begin==========================
if mod(L,2)==0
m=zeros(L,L/2);
[rows,cols]=size(m);
for i=1:cols
m(1,i)=D(1,(2*i)-1);
m(2,i)=D(1,(2*i));
end
else
m=zeros(L,(L+1)/2);
[rows,cols]=size(m);
for i=1:cols
m(1,i)=D(1,(2*i)-1);
end
for i=1:((L-1)/2)
m(2,i)=D(1,(2*i));
end
end
for j=3:rows
if m(j-1,1)==0
m(j-1,1)=0.001;
end
for i=1:cols-1
m(j,i)=(-1/m(j-1,1))*det([m(j-2,1) m(j-2,i+1);m(j-1,1) m(j-
1,i+1)]);
end
end
disp(sprintf('--> There are %2d Poles in Right Half Plane <-- ',rhpPoles))
%=======================Program Ends=======================================
Example 5: Write a Matlab Code to find the stability of the following system.
0 3 1 10
𝑥̇ = [ 2 8 1 ] 𝑥 + [ 0 ]𝑢
−10 −5 −2 0
𝑦 = [1 0 0]
0 3 1 10
Where 𝐴 = [ 2 8 1 ] and 𝑏 = [ 0 ]
−10 −5 −2 0
𝑐 = [1 0 0] and 𝑑 = [0]
MATLAB Code:
%==========================================================================
% State Space Stability Criterion
%+++++++++++++++++++++++++++++++++++++++++++++++++
% May.16.2012, +
% Engr. Hassaan Haider +
% hassaan.haider@iiu.edu.pk +
% Dept of Electronic Engineering +
% Faculty of Engineering and Technology +
% International Islamic University, Islamabad +
%+++++++++++++++++++++++++++++++++++++++++++++++++
disp(' ')
disp('----------------------------------------')
disp('Eigen Values (Poles) of the System Matrix are: '),
eigVal=eig(A);
disp(eigVal);
%=======================Program Ends=======================================
Exercises
Exercise 1: Write a Matlab Code to generate the Routh Table. Also state whether the system
is stable or unstable and number of poles on R.H.S. of the S-Plane.
𝐶(𝑠) 100
= 4
𝑅(𝑠) 𝑠 + 3𝑠 3 + 2𝑠 + 3
Exercise 2: Make a Routh table and tell how many roots of the following characteristic
polynomial are in the right half-plane and in the left half-plane.
P( s) 3s 7 9s 6 6s 5 4s 4 7 s 3 8s 2 2s 6
Exercise 3: Derive the state space and output equation for the series RLC Circuit. Take any
values of R, L and C. Take 𝑣𝑖 as input and 𝑣𝑐 as output. Determine whether the system is
stable or not?