tle('ft =exp(-t).*sin(10*pi*t)+exp(-t/2).*sin(9*pi*t)')Р波形如图:Р已知f1(t)=sin,f2(t)=sin,使用MATLAB命令绘出f1(t)-f2(t)和f1(t)/f2(t)的波形图,其中f==1HZ.Р源程序如下:Рf = 1;Рt = 0:0.01:3/f;Рf1 = sin(2*pi*f*t);Рf2 = sin(2*pi*6*f*t);Рsubplot(211),plot(t,f1-f2),grid on ,title('f1-f2');Рsubplot(212),plot(t,f1./f2),grid on ,title('f1/f2');Р波形如图:Р实验三Р1.已知f(t)=u(t)-u(t-1),h(t)=u(t-1)-u(t-3),求时域卷积积分y(t)=f(t)*h(t)Р源程序如下:Рp = 0.01;Рt1=-1:p:1;f=ones(size(t1));Рt2=1:p:3;h=ones(size(t2));Рy=conv(f,h);Рt0=t1(1)+t2(1);Рt3=length(f)+length(h)-2;Рt=t0:p:(t3*p+t0);Рsubplot(221)Рplot(t1,f)Рtitle('f(t)')Рxlabel('t');ylabel('f(t)');Рsubplot(222)Рplot(t2,h)Рtitle('h(t)')Рxlabel('t');ylabel('h(t)');Рsubplot(223)Рplot(t,y)Рg=get(gca,'position');Рg(3)=2.5*g(3);Рset(gca,'position',g)Рtitle('y(t)=f(t)*h(t)')Рxlabel('t');ylabel('y(t)');Р波形如图: