numerator = [1 2 1];
denominator =[1 2 2 1];
h = tf(numerator, denominator);
step(h); %求阶跃响应
impulse(h); %求冲击响应
你到matlab里边把上边这些试试就知道了。 你要是想保存时间和响应的具体数值,就用下边的方法调用吧。
[Y,T] = STEP(SYS) returns the output response Y and the time vector T used for simulation.