【问题标题】:How to plot a step response in MATLAB?如何在 MATLAB 中绘制阶跃响应?
【发布时间】:2017-04-30 03:40:55
【问题描述】:
w=logspace(-2,2,100);
a=[1 (2/sqrt(2)) 1];   %coefficients of denominator for k=1
b=[0 0 1];    %coefficents of numerator for k=1
H1=freqs(b,a,w) %used to determine H(jw)in frequencies w

figure()
loglog(w,abs(H1).^20,'ro',10,10); %plot for H1

t=linspace(0,30)
step((b,a),t)

我想确定数组 t 中系统的阶跃响应并绘制它。我的输入方式出现错误。我该如何纠正这个问题?

【问题讨论】:

    标签: matlab plot signals signal-processing


    【解决方案1】:

    使用step(b,a,t);

    func( x, y, (a,b) ) 不是 MATLAB 中的有效语法,MATLAB 没有元组。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-12-30
      • 2019-11-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多