ch06.pdf

In the name of Allah
Chapter 6
bode :
bode(b,a) draws the Bode plot of the LTI model. The frequency
range and number of points are chosen automatically.
bode(b,a,{WMIN,WMAX}) draws the Bode plot for frequencies
between WMIN and WMAX (in radians/second).
[mag,phase,W]=bode(b,a,W) uses the user-supplied vector W of frequencies,
in radian/second, at which the Bode response is to be evaluated.
See logspace to generate logarithmically spaced frequency vectors.
Computer exercises:
1-Consider system: y ' '+4 y '+25 y = 25 x draw the bode plot of systems.
Name your mfile : p6_1.m
2-Consider a second order system in general form:
2
2
y ' '+2ω n ε y '+ω n y = ω n x
For following values draw step response of system using step command:
Plot A : ε = 0.4
ω n = 5,10,15,20 .here ε is constant.
Draw all in a single plot using hold command.
Plot B : ε = 0.2 ω n = 10, ε = 0.4 ω n = 5, ε = 0.8 ω n = 2.25 .here ε * ω
n
is constant. Draw all in a single plot.
PlotC : ε = 0.1 ω n = 1.97 , ε = 0.2 ω n = 2, ε = 0.4 ω n = 2.14 .here ω * 1 - ε 2
n
is constant . Draw all in a single plot.
Plot all of above three plot in a single figure , Name your mfile as p6_2.m
Name your zipped file as your student ID.
Deadline: 1382/10/6
[email protected]