该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
因为你的是精简了的吧,没有step这个函数,给你一个:
function [yout,x,t] = step(a,b,c,d,iu,t)
ni = nargin;
no = nargout;
if ni==0,
eval(*exresp(**step**)*)
return
end
error(nargchk(2,6,ni));
% Determine which syntax is being used
switch ni
case 2
if size(a,1)>1,
% SIMO syntax
a = num2cell(a,2);
den = b;
b = cell(size(a,1),1);
b(:) = {den};
end
sys = tf(a,b);
t = [];
case 3
% Transfer function form with time vector
if size(a,1)>1,
% SIMO syntax
a = num2cell(a,2);
den = b;
b = cell(size(a,1),1);
b(:) = {den};
end
sys = tf(a,b);
t = c;
case 4
% State space system without iu or time vector
sys = ss(a,b,c,d);
t = [];
otherwise
% State space system with iu
if min(size(iu))>1,
error(*IU must be a vector.*);
elseif isempty(iu),
iu = 1:size(d,2);
end
sys = ss(a,b(:,iu),c,d(:,iu));
if ni<6,
t = [];
end
end
if no==1,
yout = step(sys,t);
yout = yout(:,:);
elseif no>1,
[yout,t,x] = step(sys,t);
yout = yout(:,:);
x = x(:,:);
t = t*;
else
step(sys,t);
end