Drawing Root Locus plots by hand is a hard and time consuming task so it is always good to check the answers with Matlab just to be sure you are on the right track.
The process of drawing the Root Locus with Matlab is as follow:
- Define the numerator (num).
- Define the denominator (den).
- Draw the Root Locus (rlocus (num, den))
So let’s say we want to draw the root locus for the following system:
G(s) = k / ( s )*( s^2 + 4s + 8 )
The Matlab code will be:
- num = [1];
- den = conv ([1 0] , [1 4 8]);
- rlocus (num, den)



