如何在MATLAB中绘制阶跃响应?

如何在MATLAB中绘制阶跃响应?,matlab,plot,signals,signal-processing,Matlab,Plot,Signals,Signal Processing,我想确定阵列t中系统的阶跃响应,并绘制它。我输入它的方式有错误。如何更正此问题?使用步骤(b、a、t) func(x,y,(a,b))在MATLAB中不是有效语法,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 de

我想确定阵列t中系统的阶跃响应,并绘制它。我输入它的方式有错误。如何更正此问题?

使用
步骤(b、a、t)

func(x,y,(a,b))
在MATLAB中不是有效语法,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)