%N=51%求矩形窗的频率响应图wn= rectwin(51); %矩形窗函数*log10(abs(WN))[h1,w]=freqz(wn,1);figure(1);plot(w/pi,20*log10(abs(h1/max(h1))));axis([01-1000]);xlabel('归一化频率/\pi');ylabel('20log_{10}|W(e^{j\omega})|/dB');title('矩形窗的傅里叶变换');set(gca,'YTick',[-100-80-60-40-200])set(gca,'XTick',[0:0.2:1])set(gca,'XAxisLocation','top');%设置X轴在上方set(gca,'YAxisLocation','left');%设置Y轴在左方text(1,-108,'\pi');%gtext('\pi');%求三角窗的频率响应图wn1=bartlett(51);[h1,w1]=freqz(wn1,1);figure(2);plot(w/pi,20*log10(abs(h1/max(h1))));axis([01-1000]);xlabel('归一化频率/\pi');ylabel('20log_{10}|W(e^{j\omega})|/dB');title('三角窗的傅里叶变换');set(gca,'YTick',[-100-80-60-40-200])set(gca,'XTick',[0:0.2:1])set(gca,'XAxisLocation','top');%设置X轴在上方set(gca,'YAxisLocation','left');%设置Y轴在左方%hanningwn1=hanning(51);[h1,w1]=freqz(wn1,1);figure(3);plot(w/pi,20*log10(abs(h1/max(h1))));axis([01-1000]);xlabel('归一化频率/\pi');ylabel('20log_{10}|W(e^{j\omega})|/dB');title('Hanning的傅里叶变换');set(gca,'YTick',[-100-80-60-40-200]);set(gca,'XTick',[0:0.2:1]);set(gca,'XAxisLocation','top');%设置X轴在上方set(gca,'YAxisLocation','left');%设置Y轴在左方%hammingwn1=hamming(51);[h1,w1]=freqz(wn1,1);figure(4);plot(w/pi,20*log10(abs(h1/max(h1))));axis([01-1000]);xlabel('归一化频率/\pi');ylabel('20log_{10}|W(e^{j\omega})|/dB');title('Hamming的傅里叶变换');set(gca,'YTick',[-100-80-60-40-200])set(gca,'XTick',[0:0.2:1])set(gca,'XAxisLocation','top');%设置X轴在上方set(gca,'YAxisLocation','left');%设置Y轴在左方%Blackmanwn1=blackman(51);[h1,w1]=freqz(wn1,1);figure(5);plot(w/pi,20*log10(abs(h1/max(h1))));axis([01-1000]);xlabel('归一化频率/\pi');ylabel('20log_{10}|W(e^{j\omega})|/dB');title('Blackman的傅里叶变换');set(gca,'YTick',[-100-80-60-40-200])set(gca,'XTick',[0:0.2:1])set(gca,'XAxisLocation','top');%设置X轴在上方set(gca,'YAxisLocation','left');%设置Y轴在左方参考
书
关于书的成语关于读书的排比句社区图书漂流公约怎么写关于读书的小报汉书pdf
:数字信号处理教程(第三版)程佩青 清华大学出版社 2009年11月第9次印刷P340的图7-11矩形窗 三角窗 汉宁窗 海明窗 布拉克曼窗