|
报错代码:
'''
t = [0:0.01:10];
sys = tf([8], [1 3 2]);
u = [t; 2*ones(size(t))]; % 输入信号
y0 = 1; % 系统的初始状态
y = lsim(sys, u, y0, t); % 系统输出
plot(t, y);
grid on;
xlabel('t');
ylabel('r_{zi}(t)');
title('r_{zi}(t)=x(t)*h(t)\Delta=0.01');
'''
错因:
错误使用 DynamicSystem/lsim (line 84)
When simulating the response to a specific input signal, the input
data U must be a matrix with as many rows as samples in the time
vector T, and as many columns as input channels.
|
|