Professional Documents
Culture Documents
TASK#1:Step the magnitude plot from -30db to +30db and phase (degrees) grom -180 to +180.
TASK#3: Design root locus, bode plot and nyquist plot for the same system in program.
TASK#1:
closeall
clearall
num=[25];
den=[1 4 25];
f=tf(num,den);
w=logspace(-0.708,1.41)
bode(f,w)
grid
title('open loop frequency
responce')
closeall
clearall
num=[9 1.8 9];
den=[1 1.2 9 0];
f=tf(num,den);
w=logspace(-0.708,1.41)
bode(f,w)
grid
title('open loop frequency
responce')
TASK#2:
closeall
clearall
num=[25];
den=[1 4 25];
f=tf(num,den);
w=0.1:0.1:100;
nyquist(f,w)
grid
title('open loop frequency
responce')
closeall
clearall
num=[9 1.8 9];
den=[1 1.2 9 0];
f=tf(num,den);
w=0.1:0.1:100;
nyquist(f,w)
grid
title('open loop frequency
responce')
TASK#3
MATLAB CODE: OUTPUT:
closeall
clearall
num=[25];
den=[1 4 25];
f=tf(num,den)
w=logspace(-0.708,1.41)
bode(f,w);
nyquist(f,w)
v=[-3 1 -2 2]
axis(v)
grid
title('open loop frequency
responce')