Me 360 Mat Lab Root Locus Analysis
Me 360 Mat Lab Root Locus Analysis
Me 360 Mat Lab Root Locus Analysis
As an example of how to use MATLAB to perform a root locus analysis, consider design
problem DP6.4. 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, given the parameter m 4 .
Rocket
PID Controller Dynamics
+
s 4 s 2 s 2 6s 8
1 K 1 K 0
2 3
s( s 1) s s
>> num=[1,6,8];
>> den=[1,0,-1,0];
>> sys=tf(num,den)
Transfer function:
s^2 + 6 s + 8
-------------
s^3 - s
>> rlocus(sys)
>> axis('equal')
>> title('Root Locus Diagram for K (m=4)')
Note that MATLAB does not show the direction of the movement of the poles. It is understood
that the movement is from the poles to the zeros of P(s). The axis command ensures that the
diagram is shown in its true shape.
selected_point =
-3.9356 + 5.1761i
k=
9.6740
poles =
-3.9335 + 5.2303i
-3.9335 - 5.2303i
-1.8070