Matlab的窗函数,矩形窗,三角窗,汉明窗,汉宁窗,布莱克曼窗%N=51%求矩形窗的频率响应图wn=rectwin(51);%矩形窗函数%20*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::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]);personinchargeafineof50Yuan.(8)ordancewiththeprovisions,onthejobunitfined300yuan,(1)injuriesfatalitiesdirectlypunished1~,suchasconcerningadministrativesanctions,panyortherelevantDepartment.(2)urred,-10,000yuan,identandtheresponsibilityofleadership,pany.(3)urs,thedirectpunishment500-1000,identresponsibility,givenoticeofcriticismand50-100economicsanctionsagainstthem.(4)ident,reportedwithoutunduedelayorfalse,toinformtheadministrativeleadershipofthecriticism,resultinginseriousconsequences,thepursuitofleadership,alongwith500-1000punishment.(5)identpenaltyprovisions,,shouldperformintheconstructionstandardsandspecifications,serialnumbera1GB3323-2005steelfusionweldedbuttjoints,weldingengineering-Raylightingandqualityratingof2GB11345-rade3GB50236-eptanceoffieldequipment4HGJ222-92technicalspecificationforweldingofaluminiumanditsalloys5lowtemperaturesteelweldingxlabel('归一化频率/\pi');ylabel('20log_{10}|W(e^{j\omega})|/dB');title('三角窗的傅里叶变换');set(gca,'YTick',[-100-80-60-40-200])set(gca,'XTick',[0::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])
Matlab的窗函数,矩形窗,三角窗,汉明窗,汉宁窗,布莱克曼窗 来自淘豆网m.daumloan.com转载请标明出处.