MATLAB 练习题代码报错,救救孩子!
function yt=tuxing(t)
yt=(t+2).*stepfun(t,-2)-(t-3).*stepfun(t,-3)-stepfun(t,1);
f1=2*subs(f,t,3*t);
subplot(1,4,1);ezplot(f1,[-3,3]);title('f1(t)=3subs(2t)');
f2=subs(f,t,-0.5*t-1);
subplot(1,4,2);ezplot(f2,[0,3]);title('f2(t)=f(-0.5t-1)');
f3=diff(f);subplot(1,4,3);ezplot(f3,[-2,2]);
title('f3(t)=df(t)/dt');
f4=int(f);
subplot(1,4,4);ezplot(f4,[-2,3]);title('weifenf4(t)')
[此贴子已经被作者于2023-5-30 18:33编辑过]