matlab编程,在阶跃响应中的某一刻加入脉冲扰动,用impulse

2025-05-19 08:56:28
推荐回答(1个)
回答1:

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.