Draw the bode plots and the root locus of the following tran
Draw the bode plots and the root locus of the following transfer functions using MATLAB. H(s) = 5 (s + 0.6)/s(2.5s + 1)(s + 2)(0.25s + 1) H(s) = 3.125/s(s^2 + 0.925s + 1.5625)
Solution
Open the MATLAB.Click on File>New>Script and then use the below mentioned codes to find out the bode plot and root locus.After writting code save the code and then run it.After this this the bode plot and root locus can be obtained.
a) ROOT LOCUS
clc
k=1:1:10;
num=[5 3];
den=[0.625 4 6.5 2 0];
sys=tf(num,den)
rlocus(sys,k)
grid
hold on
BODE PLOT
k=1:1:10;
num=[5 3];
den=[0.625 4 6.5 2 0];
sys=tf(num,den)
grid
hold on
[mag,phase,w]=bode(sys)
bode(sys)
b) ROOT LOCUS
clc
k=1:1:10;
num=[3.125];
den=[1 0.925 1.5625 0];
sys=tf(num,den)
rlocus(sys,k)
grid
hold on
BODE PLOT
k=1:1:10;
num=[3.125];
den=[1 0.925 1.5625 0];
sys=tf(num,den)
grid
hold on
[mag,phase,w]=bode(sys)
bode(sys)
