




版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、實(shí)驗(yàn)五、譜分析一、實(shí)驗(yàn)?zāi)康模貉芯坎煌?lèi)型的窗函數(shù),研究一些不同的方法來(lái)測(cè)試窗函數(shù)的性能;專(zhuān)注于有關(guān)窄帶信號(hào)的幾個(gè)不同的情形。二、實(shí)驗(yàn)原理:信號(hào)是無(wú)限長(zhǎng)的,而在進(jìn)行信號(hào)處理時(shí)只能采用有限長(zhǎng)信號(hào),所以需要將信號(hào)“截?cái)唷?。在信?hào)處理中,“截?cái)唷北豢闯墒怯靡粋€(gè)有限長(zhǎng)的“窗口”看無(wú)限長(zhǎng)的信號(hào),或者從分析的角度是無(wú)限長(zhǎng)的信號(hào)x(t)乘以有限長(zhǎng)的窗函數(shù)w(t),由傅里葉變換性質(zhì)可知 xtwt12Xj*W(j)如果x(t)是頻帶有限信號(hào),而w(t)是頻帶無(wú)限函數(shù),截?cái)嗪蟮男盘?hào)也必是頻帶無(wú)限信號(hào),從而產(chǎn)生所謂的頻譜泄露。頻譜泄露是不可避免的,但是盡量減小,因此設(shè)計(jì)了不同的窗函數(shù)滿足不同的要求。從能量的角度,頻譜
2、泄露也是能量泄露,因?yàn)榧哟昂?,是原?lái)的信號(hào)集中在窄頻帶內(nèi)的能量分散到無(wú)限的頻帶范圍。1、用MATLAB編程繪制各種窗函數(shù)的形狀。2、用MATLAB編程繪制各種窗函數(shù)的幅度響應(yīng)。3、繪制矩形窗的幅頻響應(yīng),窗長(zhǎng)度分別為:N=10,N=20,N=50,N=100。4、已知周期信號(hào)x(t)=0.75+3.4cosft+2.7cos4ft+1.5sin3.5ft+2.5sin7ft,其中f=25/16Hz,若截?cái)鄷r(shí)間長(zhǎng)度分別為信號(hào)周期的0.9和1.1倍,試?yán)L制和比較采用下面窗函數(shù)提取的x(t)的頻譜。三、實(shí)驗(yàn)內(nèi)容:1、用MATLAB編程繪制各種窗函數(shù)的形狀。 w1=boxcar(25); n=0:24;
3、 subplot(221),stem(n,w1),title(矩形窗); w2=hanning(25); subplot(222),stem(n,w2),title(hanning); w3=hamming(25); subplot(223),stem(n,w3),title(hamming); w4=bartlett (25); subplot(224),stem(n,w4),title(bartlett); w5=blackman(25); n=0:24; subplot(221),stem(n,w5),title(blackman); w6=triang(25); subplot(222
4、),stem(n,w6),title(triang); w7=kaiser(25,12); subplot(223),stem(n,w7),title(kaiser); w8=chebwin(25,15); subplot(224),stem(n,w8),title(chebwin);2、用MATLAB編程繪制各種窗函數(shù)的幅度響應(yīng)。Function H,W=dtft(h,N)N=fix(N);If(N fs=10; f=25/16; Tp=2.56; N=0.9*Tp*fs; n=0:N-1; w=boxcar(N); x=0.75+3.4*cos(2*pi*f*n/fs)+2.7*cos(4
5、*pi*f*n/fs)+1.5*sin(3.5*pi*f*n/fs)+2.5*sin(7*pi*f*n/fs); y=w.*x; H,W=dtft(y,1024); subplot(211); plot(W/2/pi,abs(H),grid; xlabel(frequency),ylabel(magnitude),title(t=0.9Tp); N=1.1*Tp*fs; n=0:N-1; w=boxcar(N); x=0.75+3.4*cos(2*pi*f*n/fs)+2.7*cos(4*pi*f*n/fs)+1.5*sin(3.5*pi*f*n/fs)+2.5*sin(7*pi*f*n/fs
6、); y=w.*x; H,W=dtft(y,1024); subplot(212);plot(W/2/pi,abs(H),grid;xlabel(frequency),ylabel(magnitude),title(t=1.1Tp);2、漢寧窗 fs=10; f=25/16; Tp=2.56; N=0.9*Tp*fs; n=0:N-1; w=hanning(N); x=0.75+3.4*cos(2*pi*f*n/fs)+2.7*cos(4*pi*f*n/fs)+1.5*sin(3.5*pi*f*n/fs)+2.5*sin(7*pi*f*n/fs); y=w.*x; H,W=dtft(y,102
7、4); subplot(211); plot(W/2/pi,abs(H),grid; xlabel(frequency),ylabel(magnitude),title(t=0.9Tp); N=1.1*Tp*fs; n=0:N-1; w=hanning(N); x=0.75+3.4*cos(2*pi*f*n/fs)+2.7*cos(4*pi*f*n/fs)+1.5*sin(3.5*pi*f*n/fs)+2.5*sin(7*pi*f*n/fs); y=w.*x; H,W=dtft(y,1024); subplot(212); plot(W/2/pi,abs(H),grid; xlabel(fre
8、quency),ylabel(magnitude),title(t=1.1Tp);3、漢明窗 fs=10; f=25/16; Tp=2.56; N=0.9*Tp*fs; n=0:N-1; w=hamming(N); x=0.75+3.4*cos(2*pi*f*n/fs)+2.7*cos(4*pi*f*n/fs)+1.5*sin(3.5*pi*f*n/fs)+2.5*sin(7*pi*f*n/fs); y=w.*x; H,W=dtft(y,1024); subplot(211); plot(W/2/pi,abs(H),grid; xlabel(frequency),ylabel(magnitud
9、e),title(t=0.9Tp); N=1.1*Tp*fs; n=0:N-1; w=hamming(N); x=0.75+3.4*cos(2*pi*f*n/fs)+2.7*cos(4*pi*f*n/fs)+1.5*sin(3.5*pi*f*n/fs)+2.5*sin(7*pi*f*n/fs); y=w.*x; H,W=dtft(y,1024); subplot(212); plot(W/2/pi,abs(H),grid; xlabel(frequency),ylabel(magnitude),title(t=1.1Tp);4、巴特利特窗 fs=10; f=25/16; Tp=2.56; N=
10、0.9*Tp*fs; n=0:N-1; w=bartlett(N); x=0.75+3.4*cos(2*pi*f*n/fs)+2.7*cos(4*pi*f*n/fs)+1.5*sin(3.5*pi*f*n/fs)+2.5*sin(7*pi*f*n/fs); y=w.*x; H,W=dtft(y,1024); subplot(211); plot(W/2/pi,abs(H),grid; xlabel(frequency),ylabel(magnitude),title(t=0.9Tp); N=1.1*Tp*fs; n=0:N-1; w=bartlett(N); x=0.75+3.4*cos(2*
11、pi*f*n/fs)+2.7*cos(4*pi*f*n/fs)+1.5*sin(3.5*pi*f*n/fs)+2.5*sin(7*pi*f*n/fs); y=w.*x; H,W=dtft(y,1024); subplot(212); plot(W/2/pi,abs(H),grid; xlabel(frequency),ylabel(magnitude),title(t=1.1Tp);5、布萊克曼窗 fs=10; f=25/16; Tp=2.56; N=0.9*Tp*fs; n=0:N-1; w=blackman(N); x=0.75+3.4*cos(2*pi*f*n/fs)+2.7*cos(4
12、*pi*f*n/fs)+1.5*sin(3.5*pi*f*n/fs)+2.5*sin(7*pi*f*n/fs); y=w.*x; H,W=dtft(y,1024); subplot(211); plot(W/2/pi,abs(H),grid; xlabel(frequency),ylabel(magnitude),title(t=0.9Tp); N=1.1*Tp*fs; n=0:N-1; w=blackman(N); x=0.75+3.4*cos(2*pi*f*n/fs)+2.7*cos(4*pi*f*n/fs)+1.5*sin(3.5*pi*f*n/fs)+2.5*sin(7*pi*f*n/
13、fs); y=w.*x; H,W=dtft(y,1024); subplot(212); plot(W/2/pi,abs(H),grid; xlabel(frequency),ylabel(magnitude),title(t=1.1Tp);6、triang fs=10; f=25/16; Tp=2.56; N=0.9*Tp*fs; n=0:N-1; w= triang (N); x=0.75+3.4*cos(2*pi*f*n/fs)+2.7*cos(4*pi*f*n/fs)+1.5*sin(3.5*pi*f*n/fs)+2.5*sin(7*pi*f*n/fs); y=w.*x; H,W=dt
14、ft(y,1024); subplot(211); plot(W/2/pi,abs(H),grid; xlabel(frequency),ylabel(magnitude),title(t=0.9Tp); N=1.1*Tp*fs; n=0:N-1; w= triang (N); x=0.75+3.4*cos(2*pi*f*n/fs)+2.7*cos(4*pi*f*n/fs)+1.5*sin(3.5*pi*f*n/fs)+2.5*sin(7*pi*f*n/fs); y=w.*x; H,W=dtft(y,1024); subplot(212); plot(W/2/pi,abs(H),grid; x
15、label(frequency),ylabel(magnitude),title(t=1.1Tp);7、kaiser窗 fs=10; f=25/16; Tp=2.56; N=0.9*Tp*fs; n=0:N-1; w=kaiser (N,18); x=0.75+3.4*cos(2*pi*f*n/fs)+2.7*cos(4*pi*f*n/fs)+1.5*sin(3.5*pi*f*n/fs)+2.5*sin(7*pi*f*n/fs); y=w.*x; H,W=dtft(y,1024); subplot(211); plot(W/2/pi,abs(H),grid; xlabel(frequency)
16、,ylabel(magnitude),title(t=0.9Tp); N=1.1*Tp*fs; n=0:N-1; w=kaiser (N,18); x=0.75+3.4*cos(2*pi*f*n/fs)+2.7*cos(4*pi*f*n/fs)+1.5*sin(3.5*pi*f*n/fs)+2.5*sin(7*pi*f*n/fs); y=w.*x; H,W=dtft(y,1024); subplot(212); plot(W/2/pi,abs(H),grid; xlabel(frequency),ylabel(magnitude),title(t=1.1Tp);8、切比雪夫窗 fs=10; f
17、=25/16; Tp=2.56; N=0.9*Tp*fs; n=0:N-1; w= chebwin (N,19); x=0.75+3.4*cos(2*pi*f*n/fs)+2.7*cos(4*pi*f*n/fs)+1.5*sin(3.5*pi*f*n/fs)+2.5*sin(7*pi*f*n/fs); y=w.*x; H,W=dtft(y,1024); subplot(211); plot(W/2/pi,abs(H),grid; xlabel(frequency),ylabel(magnitude),title(t=0.9Tp); N=1.1*Tp*fs; n=0:N-1; w=chebwin(N,19); x=0.75+3.4*cos(2*pi*f*n/fs)+2.7*cos(4*pi*f*n/fs)+1.5*sin(3.5*pi*f*n/fs)+2.5*sin(7*pi
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 【正版授權(quán)】 ISO/IEC 30105-2:2024 EN Information technology - IT Enabled Services-Business Process Outsourcing (ITES-BPO) lifecycle processes - Part 2: Process assessment model (PAM)
- 【正版授權(quán)】 ISO 13315-2:2025 EN Environmental management for concrete and concrete structures - Part 2: System boundary and inventory data
- 2025年度公共設(shè)施裝修工期延誤賠償及質(zhì)量保證協(xié)議
- 2025年度電子商務(wù)交易安全保障合同
- 2025高考作文預(yù)測(cè):正確“出圈”才能出彩
- 個(gè)人職業(yè)能力提升計(jì)劃
- 未來(lái)年的市場(chǎng)拓展計(jì)劃
- 提升職業(yè)道德與素養(yǎng)的工作計(jì)劃
- 班級(jí)網(wǎng)絡(luò)學(xué)習(xí)平臺(tái)的搭建與維護(hù)計(jì)劃
- 2025年休閑專(zhuān)用車(chē)及其零附件項(xiàng)目建議書(shū)
- 《個(gè)人所得稅法解讀》課件
- 河南省鄭州市外國(guó)語(yǔ)學(xué)校2025屆高考仿真卷英語(yǔ)試題含解析
- 電腦維修合同三篇
- 高三數(shù)學(xué)試卷含答案
- 康復(fù)治療技術(shù)-言語(yǔ)康復(fù)
- 2023年新疆省公務(wù)員錄用考試《行測(cè)》真題卷及答案解析
- 2024年國(guó)網(wǎng)公司企業(yè)文化與職業(yè)道德試考試題庫(kù)(含答案)
- 機(jī)場(chǎng)食品配送應(yīng)急處理方案
- 醫(yī)院培訓(xùn)課件:《黃帝內(nèi)針臨床運(yùn)用》
- 地質(zhì)隊(duì)安全培訓(xùn)
- 建筑復(fù)工復(fù)產(chǎn)安全培訓(xùn)
評(píng)論
0/150
提交評(píng)論