0% found this document useful (0 votes)
62 views

Commands Plotting Root Locus

The document provides Matlab code to plot root locus diagrams for three different systems. The code includes commands to define the numerator and denominator polynomials, plot the root locus, add a reference line, scale the axes, and add a title. Each set of code is followed by the corresponding root locus diagram.

Uploaded by

Shivangi Thakker
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views

Commands Plotting Root Locus

The document provides Matlab code to plot root locus diagrams for three different systems. The code includes commands to define the numerator and denominator polynomials, plot the root locus, add a reference line, scale the axes, and add a title. Each set of code is followed by the corresponding root locus diagram.

Uploaded by

Shivangi Thakker
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Commands for plotting root locus:

num=[0 0 0 1];
den=[1 5 7 0];
rlocus(num,den);
hold
x=[0 -2];
y=[0 3.464];
line(x,y);
axis('square')
grid;
title('Root locus plot');

Root locus plot

6 0.86
0.76 0.64 0.5 0.34 0.16

4
0.94

2
0.985
Imaginary Axis

10 8 6 4 2
0

0.985
-2

0.94
-4

0.76 0.64 0.5 0.34 0.16


-6 0.86
-10 -8 -6 Real -4
Axis -2 0 2
Root locus 2:

num=[0 0 0 6];
den=[1 3 2 0];
rlocus(num,den);
hold
x=[0 -2];
y=[0 3.464];
line(x,y);
axis('square')
grid;
title('Root locus plot');

Root locus plot


4
0.76 0.64 0.5 0.34 0.16
0.86
3

2 0.94 System: sys


Gain: 0.0642
Pole: -0.423 - 0.0125i
1 0.985 Damping: 1
Overshoot (%): 0
Imaginary Axis

Frequency (rad/sec): 0.423


6 5 4 3 2 1
0

-1 0.985

-2 0.94

-3
0.86
0.76 0.64 0.5 0.34 0.16
-4
-6 -5 -4 -3 -2 -1 0 1 2
Real Axis
Root locus

Commands for drawing root locus:

num=[0 0 0 24.54 24.54];


den=[1 6 10 8 0];
rlocus(num,den);
hold
axis('square')
grid;
title('Root locus plot');

Root locus plot


6 0.86
0.76 0.64 0.5 0.34 0.16

4
0.94

2
0.985
Imaginary Axis

10 8 6 4 2
0

0.985
-2

0.94
-4

0.76 0.64 0.5 0.34 0.16


-6 0.86
-10 -8 -6 -4 -2 0 2
Real Axis
 

You might also like