资源描述:
《数字信号处理实验快速傅里叶变换》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、.一.p=8q=2forn=0:15x1(n+1)=exp(-((n-p)^2)/q);subplot(3,2,1);stem(x1);y1=fft(x1,16);subplot(3,2,2);plot(y1);endp=8q=4forn=0:15x2(n+1)=exp(-((n-p)^2)/q);subplot(3,2,3);stem(x2);y2=fft(x2,16);subplot(3,2,4);plot(y2);p=8q=8endforn=0:15x3(n+1)=exp(-((n-p)^2)/q);subplot(3,2
2、,5);stem(x3);y3=fft(x3,16);subplot(3,2,6);plot(y3);end...p=8q=8forn=0:15x1(n+1)=exp(-((n-p)^2)/q);subplot(3,2,1);stem(x1);y1=fft(x1,16);subplot(3,2,2);plot(y1);endp=13q=8forn=0:15x2(n+1)=exp(-((n-p)^2)/q);subplot(3,2,3);stem(x2);y2=fft(x2,16);subplot(3,2,4);plot(y2);
3、p=14q=8endforn=0:15x3(n+1)=exp(-((n-p)^2)/q);subplot(3,2,5);stem(x3);y3=fft(x3,16);subplot(3,2,6);plot(y3);end...二p=0.1f=0.0625forn=0:15x1(n+1)=exp(-p*n).*sin(2*pi*f*n);subplot(3,2,1);stem(x1);y1=fft(x1,16);subplot(3,2,2);plot(y1);endp=0.1f=0.4375forn=0:15x2(n+1)=exp
4、(-p*n).*sin(2*pi*f*n);subplot(3,2,3);stem(x2);y2=fft(x2,16);subplot(3,2,4);plot(y2);endp=0.1f=0.5625forn=0:15x3(n+1)=exp(-p*n).*sin(2*pi*f*n);...subplot(3,2,5);stem(x3);y3=fft(x3,16);subplot(3,2,6);plot(y3);end三.forn=0:3x1(n+1)=n;end;forn=4:7x1(n+1)=8-n;end;subplot(3
5、,2,1);stem(x1);y1=fft(x1,8);subplot(3,2,2);plot(y1);forn=0:3x2(n+1)=4-n;end;forn=4:7x2(n+1)=n-4;end;subplot(3,2,3);stem(x2);y2=fft(x2,8);subplot(3,2,4);plot(y2);...forn=0:3x1(n+1)=n;end;forn=4:7x1(n+1)=8-n;endforn=8:32x1(n+1)=0;end;subplot(3,2,1);stem(x1);y1=fft(x1,3
6、2);subplot(3,2,2);plot(y1);forn=0:3x2(n+1)=4-n;end;forn=4:7x2(n+1)=n-4;end;forn=8:32x1(n+1)=0;end;...subplot(3,2,3);stem(x2);y2=fft(x2,32);subplot(3,2,4);plot(y2);四f=1/16forn=0:15x1(n+1)=sin(2*pi*0.125*n)+cos(2*pi*(0.125+f)*n);end;y1=fft(x1,16);subplot(2,2,1);plot(y1
7、);f=1/64forn=0:15x2(n+1)=sin(2*pi*0.125*n)+cos(2*pi*(0.125+f)*n);end;y2=fft(x2,16);subplot(2,2,2);plot(y2);f=1/16...forn=0:127x3(n+1)=sin(2*pi*0.125*n)+cos(2*pi*(0.125+f)*n);end;y3=fft(x3,128);subplot(2,2,3);plot(y3);f=1/64forn=0:127x4(n+1)=sin(2*pi*0.125*n)+cos(2*pi
8、*(0.125+f)*n);end;y4=fft(x4,128);subplot(2,2,4);plot(y4);(5)clear;fori=0:15;xa(i+1)=exp(-(i-8)^2/2);endfori=0:15;xb(i+1)=(exp(-0.1*