function e()
for i=1:1000
t(i)=0.01*i-5;
if t(i)<=0
y(i)=0;
else
y(i)=1;
end
end
上面是阶跃函数
下面是主函数
function RL5()
r=2,l=2;
t=0:0.001:5;
h=e;
Ul=dirac(t)-r/l*exp(-r*t/l)*h;
subplot(2,1,1);plot(t,ul);
title('ul(t)');
grid on;
错误是:r =
2
??? Error using ==> e
Too many output arguments.
Error in ==> RL5 at 4
h=e;
求解答