声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1132|回复: 2

[综合讨论] 求助波德图程序(Matlab)

[复制链接]
发表于 2007-5-4 14:39 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
哪位大侠能够提供波德图的完整程序?
在此表示感谢!
回复
分享到:

使用道具 举报

发表于 2007-5-4 14:48 | 显示全部楼层
好像matlab自带的有,bode?
发表于 2007-5-4 15:21 | 显示全部楼层

回复 #2 hunter_009 的帖子

很多控制书上都有的,你找找看,至于bode的用法,看看帮助文件啊,或者找本书看看,很简单的
BODE  Bode 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').

    [MAG,PHASE] = BODE(SYS,W) and [MAG,PHASE,W] = 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 [NY NU LENGTH(W)] 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
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-11-29 15:27 , Processed in 0.072483 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表