1、2、冲激信号冲激信号的傅里叶变换对为3、直流信号直流信号的傅里叶变换为4、阶跃信号阶跃信号的傅里叶变换为5、单边指数信号单边指数信号的傅里叶变换对为 幅度频谱和相位频谱分别为三、涉及的MATLAB函数1、fourier函数2、ifourier函数四、实验内容与方法1、验证性试验1)门信号的傅里叶变换MATLAB程序:Clear all;syms t wut=sym(heaviside(t+0。5)-heaviside(t-0。5);subplot(2,1,1);ezplot(ut)hold onaxis(1 1 0 1。1);plot(-0。5 -0。5,0,1);plot(0.5 0。5,0
2、,1);Fw=fourier(ut,t,w);FFP=abs(Fw);subplot(2,1,2);ezplot(FFP,-10pi 10*pi);axis(-10*pi 10*pi 0 1。1);程序运行结果图2)冲激信号的傅里叶变换MATLAB程序:clear allut1=sym(heaviside(t+0。5)heaviside(t-0。5);ezplot(ut1);title(脉宽为1的矩形脉冲信号)xlabel(t)axis(1 1 0 1.1);5,0 1);plot(0。5 0。5,0 1);Fw=fourier(ut1,t,w);FFw=abs(Fw);subplot(2,1
3、,2);ezplot(FFw,-10pi 10pi);axis(10*pi 10*pi 0 1.1);title(脉宽为1的矩形脉冲信号的幅度频谱)pauseut2=10sym(heaviside(t+0.05)-heaviside(t0.05)subplot(2,1,1);ezplot(ut2);title(脉宽为1、0。1矩形脉冲信号)taxis(1 1 0 11);05 -0.05,0 10);05 0.05,0 10);Fw2=fourier(ut2,t,w);FFw2=abs(Fw2);ezplot(FFw2,-10pi 10pi);axis(-10*pi 10*pi 0 1。1的矩
4、形脉冲信号的幅度频谱ut3=100sym(heaviside(t+0。005)-heaviside(t-0.005);subplot(2,1,1);ezplot(ut3);title(脉宽为1、0.1和0.01矩形脉冲信号xlabel(t)axis(-1 1 0 110);plot(-0.005 -0。005,0 100);plot(0.005 0。005,0 100);Fw3=fourier(ut3,t,w);FFw3=abs(Fw3);ezplot(FFw3,-10pi 10*pi);axis(-10pi 10pi 0 1.1);title(脉宽为1、0.1和0。01的矩形脉冲信号的幅度频
5、谱)3)直流信号的傅里叶变换clear all;display(Please input the value of aa=input(a=syms tf=exp(-a*abs(t);subplot(1,2,1)ezplot(f);axis(2pi 2pi 0 1);ylabel(时域波形);F=fourier(f);subplot(1,2,2)ezplot(abs(F);axis(-3 3 0 2/a)a=0.1时:a=0.01时:a=0.001时:a=0。0001时:4)阶跃信号的傅里叶变换syms w;xw=1/(j*w);ezplot(abs(imag(xw);axis(-3 3 -1。
6、5*pi 1。5*pi);y=0:0。01:pi;plot(0,y);y=pi:title(阶跃信号频谱);omegaaxis(pi pi 6 6);x=-pi:001:plot(x,0)y=-6:01:6;5)单边指数信号的傅里叶变换syms t v w phase im re f=exp(-2t)sym(heaviside(t);Fw=fourier(f);subplot(3,1,1);axis(1 2。5 0 1。1);xlabel(时域波形);subplot(3,1,2)ezplot(abs(Fw);xlabel(幅度频谱);im=imag(Fw);re=real(Fw);phase=
7、atan(im/re);subplot(3,1,3);ezplot(phase);xlabel(相位频谱);2、程序设计实验确定下列信号的傅里叶变换的数学表达式1)的傅里叶变换f=exp(-2t)*sym(heaviside(t)+1;Fw=fourier(f);Fw=simple(Fw);ezplot(f);时域波形);subplot(3,1,2)ezplot(abs(Fw);re=real(Fw);xlabel(幅度频谱subplot(3,1,3);ezplot(phase);相位频谱);2)f=exp(-1*t)*sym(heaviside(t-1)+heaviside(t+1)-heaviside(t-1);Fw=simple(Fw);subplot(3,1,1);axis(-2.5 2.5 0 1。xlabel(时域波形subplot(3,1,2)幅度频谱);subplot(3,1,3);3)f=2sym(heaviside(t1)+dirac(t-4);ezplot(f)axis(1 6 0 1。5);时域波形subplot(3,1,3);xlabel(相位频谱);
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1