【发布时间】:2011-05-03 01:09:01
【问题描述】:
我正在尝试绘制具有两个单位步长的控制系统的响应 - 一个是 t=0,一个是 t=0.3
这是我正在使用的代码:
% Set up the transfer function
numer = [K*K_m*r];
denom = [(L_m*J_e) (L_m*b_m+R_m*J_e) (K_b*K_m+R_m*b_m) K*K_m*r];
transfun = tf(numer, denom);
% Apply a step function at t=0
[y,T] = step(transfun, 0:0.001:0.5);
% Second step function at t=0.3
[y_b, T_b] = step(transfun, 0.3:0.001:0.5);
% How to add the above two outputs together?
plot( ???? )
我搜索了谷歌,但我能找到的唯一解决方案是针对具有多输入 (MIMO) 的系统。这个系统只有一个输入,我只是想用叠加原理把它们加在一起。
当我尝试将两个向量相加时,我得到“向量必须具有相同的长度。”
【问题讨论】: