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)


{ 31 comments… read them below or add one }
Aaah Matlab…such wonderful memories
it was helpful. thanks
useful
thanks…………..
helpful…
Thanks alot, it really helped me out.
Ah.. thanks. Can finish my homework now.. [;)]
thank u
Thanks for doing that tutorial. I noticed that it is similar to Modern Control System by Dorf and Bishop Question E.7.13a, how would you approach b and c?
looks quite simple than what we do in theory
thanks!
if any other rule please forward.
salam
age bekhaym makane rishe haye ye system ta’khirdar ro rasm konim bayad chikar konim?
how can we use the grids….?
Honestly I did that so long ago I don’t remember. I’m sorry
thanks for the info..very helpful.. =)
No problem g3n. Glad it helped
salam. motshakeram az rahnamayitun. shoma iran zendegi mikonin? kodum uni?
Khahesh mikonam ostad. Man Iran nistam. Amrica zendegi mikonam. shoma che daneshgahi miri?
use rl tool instead to see the entire nature of the root locus
salam nima khan
ei vala khosahm miad ke irani hasti.
thanks a lot for your guidence.
Thanks for your comment.
that actually leaves so many unanswered questions
What questions do you have?
hi sir i want the code to dewarp the image obtained by capturing in camera plzzz help me
so helpful!
Hi how are you? if we have a function with 2 variables , how we can plot 1 variable against the other one,
i will appreciate it if you answer me.
>> grid
>> [k,poles]=rlocfind(num,den)
Select a point in graphics window
Very helpful. Thank you. It was so easy to use.
WAT U SAID WE NOT UNDERSTAND NOTHING
it’s just practical approch of soliving , but theoritical calculation would help me .
How do you graph the negative root locus?!
i don’t to how to write the code of this G(S)= k(s+2) (s+3) / s(s+1)
plz help!!
you can solve by take out the K
expand the den & num equations.
& the system will be like this
G(s) = k *([num]/[den])
The Matlab code will be:
num = [1];
den = conv ([1 0] , [1 4 8]);
rlocus (num, den)
{ 2 trackbacks }