求助波德图程序(Matlab)
哪位大侠能够提供波德图的完整程序?在此表示感谢! 好像matlab自带的有,bode?
回复 #2 hunter_009 的帖子
很多控制书上都有的,你找找看,至于bode的用法,看看帮助文件啊,或者找本书看看,很简单的BODEBode frequency response of LTI models.
BODE(SYS) draws the Bode plot of the LTI model SYS (created with
either TF, ZPK, SS, or FRD).The frequency range and number of
points are chosen automatically.
BODE(SYS,{WMIN,WMAX}) draws the Bode plot for frequencies
between WMIN and WMAX (in radians/second).
BODE(SYS,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.
BODE(SYS1,SYS2,...,W) graphs the Bode response of multiple LTI
models SYS1,SYS2,... on a single plot.The frequency vector W
is optional.You can specify a color, line style, and marker
for each model, as in
bode(sys1,'r',sys2,'y--',sys3,'gx').
= BODE(SYS,W) and = BODE(SYS) return the
response magnitudes and phases in degrees (along with the frequency
vector W if unspecified).No plot is drawn on the screen.
If SYS has NY outputs and NU inputs, MAG and PHASE are arrays of
size where MAG(:,:,k) and PHASE(:,:,k) determine
the response at the frequency W(k).To get the magnitudes in dB,
type MAGDB = 20*log10(MAG).
For discrete-time models with sample time Ts, BODE uses the
transformation Z = exp(j*W*Ts) to map the unit circle to the
real frequency axis.The frequency response is only plotted
for frequencies smaller than the Nyquist frequency pi/Ts, and
the default value 1 (second) is assumed when Ts is unspecified.
See also BODEMAG, NICHOLS, NYQUIST, SIGMA, FREQRESP, LTIVIEW, LTIMODELS.
Overloaded methods
help lti/bode.m
help idmodel/bode.m
help idfrd/bode.m
页:
[1]