资源描述:
《东南大学信号与系统MATLAB实践第三次作业》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、....练习三实验三五.1.>>helpwindowWINDOWWindowfunctiongateway.WINDOW(@WNAME,N)returnsanN-pointwindowoftypespecifiedbythefunctionhandle@WNAMEinacolumnvector.@WNAMEcanbeanyvalidwindowfunctionname,forexample:@bartlett-Bartlettwindow.@barthannwin-ModifiedBartlett-Hanningwindow.@blackman-Blackmanwindow.@blackman
2、harris-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)
3、window.@rectwin-Rectangularwindow.@tukeywin-Tukeywindow.@triang-Triangularwindow.WINDOW(@WNAME,N,OPT)designsthewindowwiththeoptionalinputargumentspecifiedinOPT.Toseewhattheoptionalinputargumentsare,seethehelpfortheindividualwindows,forexample,KAISERorCHEBWIN.WINDOWlaunchestheWindowDesign&AnalysisToo
4、l(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','Ha
6、mming');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);gr
7、id;专业.专注....ts=0.01;N=50;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(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