11()()-(-)()()(2)222tftututmatlabftfft1、已知:,试用命令绘制、、的频谱图,并进行比较。实验三用MATLAB实现信号的采样与恢复一、实验目的1、学会运用MATLAB分析连续时间信号的傅里叶变换的性质;2、理解信号的抽样及抽样定理以及抽样信号的频谱分析;二、实验内容2、用MATLAB编程实现Sa(t)信号经矩形脉冲p(t)采样后得到的抽样信号fs(t),结合采样定理分析试验结果。三、实验要求利用所学知识,编写实验内容中相应程序,并将运行结果写入实验报告。symstw,f='Heaviside(t+1/2)-Heaviside(t-1/2)';subplot(3,2,1),ezplot(f,[-1.5,1.5]),gridonfw1=simplify(fourier(f,t,w));subplot(3,2,2),ezplot(abs(fw1),[-10*pi,10*pi]),gridonf2='Heaviside(t/2+1/2)-Heaviside(t/2-1/2)';subplot(3,2,3),ezplot(f2,[-1.5,1.5]),gridonfw2=simplify(fourier(f2,t,w));subplot(3,2,4),ezplot(abs(fw2),[-10*pi,10*pi]),gridonp(t)-0.20.20.40.811.4-0.4-0.8-1-1.4t0…………1()()()saftStpt即2T=0.60.4T3,,f3='Heaviside(2*t+1/2)-Heaviside(2*t-1/2)';subplot(3,2,5),ezplot(f3,[-1.5,1.5]),gridonfw3=simplify(fourier(f3,t,w));subplot(3,2,6),ezplot(abs(fw3),[-10*pi,10*pi]),gridonsymsts;t=-3*pi:0.01:3*pi;s=sinc(t/pi);subplot(311),plot(t,s);y=0.5*(square(2*pi*(t+0.2)/0.6,2*100/3)+1);subplot(312),plot(t,y);f=s.*y;subplot(313),plot(t,f);