0% found this document useful (0 votes)
32 views3 pages

Output:-: All All 'S'

The document contains the code to plot root locus plots for different transfer functions with varying values of damping ratio (ζ) and natural frequency (ωn) lines and circles. It initializes variables, defines three transfer functions with different polynomials, uses the rlocus command to plot the root loci for varying values of a gain parameter k, and includes axis limits, a legend, and a title for each plot.
Copyright
© © All Rights Reserved
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)
32 views3 pages

Output:-: All All 'S'

The document contains the code to plot root locus plots for different transfer functions with varying values of damping ratio (ζ) and natural frequency (ωn) lines and circles. It initializes variables, defines three transfer functions with different polynomials, uses the rlocus command to plot the root loci for varying values of a gain parameter k, and includes axis limits, a legend, and a title for each plot.
Copyright
© © All Rights Reserved
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/ 3

clc

close all
clear all
s=tf('s')
k=[0,1,10,100]
g=(s+2)/((s+3)*(s^2 +2*s+2))
h=1
z=series(g,h)
rlocus(z,k)
axis([-3 1 -2 2])
legend('amna')
title ('Root Locus Plot with \zeta = 0.5 and 0.65 Lines and \omega_n = 0.2,
0.7 and 1.5 Circles')
output:-

Task 5:-

clc
close all
clear all
s=tf('s')
k=[0,1,10,100]
g=(s+2)/((s^2 -4*s+13))
h=1
z=series(g,h)
rlocus(z,k)
axis([-3 1 -2 2])
legend('amna')
title ('Root Locus Plot with \zeta = 0.7 and 0.85 Lines and \omega_n = 0.4,
0.9 and 1.5 Circles')
output:-
Task 6:-

clc
close all
clear all
s=tf('s')
k=[0,1,10,100]
g=(s^2 -4*s+20)/((s+2)*(s+4))
h=1
z=series(g,h)
rlocus(z,k)
axis([-3 1 -2 2])
legend('amna')
title ('Root Locus Plot with \zeta = 0.3 and 0.5 and 0.707 Lines and \omega_n
= 0.3, 0.5 and 0.8 and 1.5 Circles')
output:-

You might also like