Docsity

Using MATLAB for Root Locus Analysis in Introductory Motion and Control, Schemes and Mind Maps of Innovation

Toggle sidebar
bg1
Kamman – Introductory Motion and Control – Using MATLAB for a Root Locus Analysis – page: 1/3
Introductory Motion and Control
Using MATLAB® for Root Locus Analysis
Reference: Dorf & Bishop, Modern Control Systems, Pearson/Prentice-Hall, 11th Ed., 2008.
As an example of how to use MATLAB to perform a root locus analysis, consider design
problem DP6.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
0)(1 =+ sGH
or
0)(1 =+ sKP
.
Substituting the transfer functions from the block diagram into the characteristic equation gives
( )( )
2
23
42 68
1 1 0
( 1)
ss ss
KK
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
Dynamics
Y(s)
R(s)
+
pf3

Partial preview of the text

Download Using MATLAB for Root Locus Analysis in Introductory Motion and Control and more Schemes and Mind Maps Innovation in PDF only on Docsity!

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

4 T.

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 The damping ratio is calculated as  =cos( ). For example, poles that lie below the

o = 45

line have damping ratios  0.707.

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