第十四题 >> t=0:0.2:2;
>> y=t.^2.*exp(-5*t).*sin(t);plot(t,y,'o')
>> ezplot('t.^2.*exp(-5*t).*sin(t)',[0,2]);hold on >> x1=0:0.01:2;y1=interp1(t,y,x1,'spline'); >> plot(x1,y1)
第十四题 >> t=0:0.2:2;
>> y=t.^2.*exp(-5*t).*sin(t);plot(t,y,'o')
>> ezplot('t.^2.*exp(-5*t).*sin(t)',[0,2]);hold on >> x1=0:0.01:2;y1=interp1(t,y,x1,'spline'); >> plot(x1,y1)