

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Introductory Motion and Control
Using MATLAB
® for Root Locus Analysis
Reference: Dorf & Bishop, Modern Control Systems, Pearson/Prentice-Hall, 11
th Ed., 2008.
As an example of how to use MATLAB to perform a root locus analysis, consider design
problem DP 6.4 of Dorf & Bishop. The block diagram of the closed-loop system is shown below.
The goal is to use MATLAB to draw a root locus diagram for the parameter K.
The characteristic equation of the closed-loop system is 1 + GH ( s )= 0 or 1 + KP ( s )= 0.
Substituting the transfer functions from the block diagram into the characteristic equation gives
2
2 3
s s (^) s s K K s s s s
The MATLAB commands that produce
the root locus diagram are:
num = [1,6,8]; den = [1, 0, - 1, 0];
sys = tf(num,den)
rlocus(sys) axis ('equal') title('Root Locus Diagram for K (m=4)')
In response to the “tf” command,
MATLAB provides the transfer function
in the command window.
sys =
s^2 + 6 s + 8
s^3 - s
Continuous-time transfer function.
The three branches of the diagram are shown in green, blue, and red. Note, however, that
MATLAB does not show the direction of the movement of the poles as K increases. It is
Rocket
PID Controller^ Dynamics
R ( s ) + Y ( s )
understood the movement is from the poles of P s ( ) to the zeros of P s ( ). In this case, there are
three branches , but only two zeros so one of the branches must go to infinity along an asymptote.
As stated in previous notes, if there is only one asymptote, it is at 180 degrees. The “axis”
command ensures that the diagram is shown in its true shape.
Target Regions for Poles
o The damping ratios and settling times of the
poles are determined by their location in the s -
plane.
o To ensure a settling time less than s T , the real
parts of all the poles of the system should be to
the left of s
o The damping ratio of each of the complex
poles is determined by drawing a vector from
the origin to the location of the pole and
measuring the angle between this vector and
the negative real axis.
o = 45
Parameter Values Associated with Poles in the Target Region
To find parameter values associated
with poles within the target region, use
the “rlocfind” command in MATLAB.
After executing the “rlocfind”
command, click on a desirable pole
location on one of the branches of the
root locus diagram in the plot window.
MATLAB automatically picks the point
on the branch that is closest to your
selection.
X