如何在MATLAB中绘制步骤响应


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中系统的步骤响应并绘制它。我正在以输入它的方式遇到错误。我该如何纠正?

使用step(b,a,t);

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

最新更新