资源描述:
《东南大学信号与系统MATLAB实践第三次作业》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、练习三实验三五.1.>>helpwindowWINDOWWindowfunctiongateway.WINDOW(@WNAME,N)returnsanN-pointwindowoftypespecifiedbythefunctionhandle@WNAMEinacolumnvector.@WNAMEcanbeanyvalidwindowfunctionname,forexample:@bartlett-Bartlettwindow.@barthannwin-ModifiedBartlett-Hanningwindow.@blackman-Blackmanwindow.@blackmanhar
2、ris-Minimum4-termBlackman-Harriswindow.@bohmanwin-Bohmanwindow.@chebwin-Chebyshevwindow.@flattopwin-FlatTopwindow.@gausswin-Gaussianwindow.@hamming-Hammingwindow.@hann-Hannwindow.@kaiser-Kaiserwindow.@nuttallwin-Nuttalldefinedminimum4-termBlackman-Harriswindow.@parzenwin-Parzen(delaValle-Poussin)wi
3、ndow.@rectwin-Rectangularwindow.@tukeywin-Tukeywindow.@triang-Triangularwindow.WINDOW(@WNAME,N,OPT)designsthewindowwiththeoptionalinputargumentspecifiedinOPT.Toseewhattheoptionalinputargumentsare,seethehelpfortheindividualwindows,forexample,KAISERorCHEBWIN.WINDOWlaunchestheWindowDesign&AnalysisTool
4、(WinTool).EXAMPLE:N=65;w=window(@blackmanharris,N);w1=window(@hamming,N);w2=window(@gausswin,N,2.5);plot(1:N,[w,w1,w2]);axis([1N01]);legend('Blackman-Harris','Hamming','Gaussian');Seealsobartlett,barthannwin,blackman,blackmanharris,bohmanwin,chebwin,gausswin,hamming,hann,kaiser,nuttallwin,parzenwin
5、,rectwin,triang,tukeywin,wintool.Overloadedfunctionsormethods(oneswiththesamenameinotherdirectories)helpfdesign/window.mReferencepageinHelpbrowserdocwindow2.>>N=128;w=window(@rectwin,N);w1=window(@bartlett,N);w2=window(@hamming,N);plot(1:N,[w,w1,w2]);axis([1N01]);legend('矩形窗','Bartlett','Hamming');
6、3.>>wvtool(w,w1,w2)六.ts=0.01;N=20;t=0:ts:(N-1)*ts;x=2*sin(4*pi*t)+5*cos(6*pi*t);g=fft(x,N);y=abs(g)/100;figure(1):plot(0:2*pi/N:2*pi*(N-1)/N,y);grid;ts=0.01;N=30;t=0:ts:(N-1)*ts;x=2*sin(4*pi*t)+5*cos(6*pi*t);g=fft(x,N);y=abs(g)/100;figure(2):plot(0:2*pi/N:2*pi*(N-1)/N,y);grid;ts=0.01;N=50;t=0:ts:(N
7、-1)*ts;x=2*sin(4*pi*t)+5*cos(6*pi*t);g=fft(x,N);y=abs(g)/100;figure(3):plot(0:2*pi/N:2*pi*(N-1)/N,y);grid;ts=0.01;N=100;t=0:ts:(N-1)*ts;x=2*sin(4*pi*t)+5*cos(6*pi*t);g=fft(x,N);y=abs(g)/100;figure(4):plot(0