




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、統(tǒng)計(jì)信號處理實(shí)驗(yàn)四目的:掌握自適應(yīng)濾波的原理;內(nèi)容一:假設(shè)一個接收到的信號為:d(t)=s(t)+n(t), 其中s(t)=A*cos(wt+a), 已知信號的頻率w=1KHz,而信號的幅度和相位未知,n(t)是一個服從N(0,1)分布的白噪聲。為了利用計(jì)算機(jī)對信號進(jìn)行處理,將信號按10KHz的頻率進(jìn)行采樣。1)通過對進(jìn)行自適應(yīng)信號處理,從接收信號中濾出有用信號;2)觀察自適應(yīng)信號處理的權(quán)系數(shù);3)觀察在不同的收斂因子下的濾波結(jié)果,并進(jìn)行分析;4)觀察在不同的抽頭數(shù)N下的濾波結(jié)果,并進(jìn)行分析。內(nèi)容二:在實(shí)驗(yàn)一的基礎(chǔ)上,假設(shè)信號的頻率也未知,重復(fù)實(shí)驗(yàn)一;內(nèi)容三:假設(shè)s(t)是任意一個峰峰值不超過
2、1的信號(取幅度為0.5的方波),n(t)是一個加在信號中的幅度和相位未知的,頻率已知的50Hz單頻干擾信號(可以假設(shè)幅度為1)。信號取樣頻率1KHz,試通過自適應(yīng)信號處理從接收信號中濾出有用信號s(t)。要求:1) 給出自適應(yīng)濾波器結(jié)構(gòu)圖;2) 設(shè)計(jì)仿真計(jì)算的Matlab程序,給出軟件清單;3) 完成實(shí)驗(yàn)報(bào)告,對實(shí)驗(yàn)過程進(jìn)行描述,并給出試驗(yàn)結(jié)果,對實(shí)驗(yàn)數(shù)據(jù)進(jìn)行分析。%LMS.mfunction yn,W,en=LMS(xn,dn,M,mu,itr)if nargin = 4 itr = length(xn);elseif nargin = 5 if itrlength(xn) | itrM
3、error(iterations number error!); endelse error(check parameter!);enden = zeros(itr,1); W = zeros(M,itr); for k = M:itr x = xn(k:-1:k-M+1); y = W(:,k-1). * x; en(k) = dn(k) - y ; W(:,k) = W(:,k-1) + 2*mu*en(k)*x;endyn = inf * ones(size(xn);for k = M:length(xn) x = xn(k:-1:k-M+1); yn(k) = W(:,end).* x
4、;end內(nèi)容一:t=0:999;xs=10*sin(6.28*t/500);figure;subplot(2,1,1);plot(t,xs);grid;ylabel(amplitude);title(input of periodic signal);randn(state,sum(1000*clock);xn=randn(1,1000);subplot(2,1,2);plot(t,xn);grid;ylabel(amplitude);xlabel(t);title(random noise signal);xn = xs+xn;xn = xn. ; dn = xs. ; M = 5 ; rh
5、o_max = max(eig(xn*xn.); mu = rand()*(1/rho_max) ; yn,W,en = LMS(xn,dn,M,mu);figure;subplot(2,1,1);plot(t,xn);grid;ylabel(amplitude);xlabel(t);title(input of filter);subplot(2,1,2);plot(t,yn);grid;ylabel(amplitude);xlabel(t);title(output of adaptive filter);figure plot(t,yn,b,t,dn,g,t,dn-yn,r);grid;
6、legend(output of adaptive filter,expected output,deviation);ylabel(amplitude);xlabel(t);title(adaptive filter);觀察自適應(yīng)信號處理的權(quán)系數(shù)權(quán)系數(shù)非常小觀察在不同的收斂因子下的濾波結(jié)果,并進(jìn)行分析將收斂因子變大mu = rand()*(15/rho_max)濾波效果變差將收斂因子變小mu = rand()*(0.1/rho_max)曲線變得平滑,誤差大。觀察在不同的抽頭數(shù)N下的濾波結(jié)果,并進(jìn)行分析。M= 5M= 10M= 30抽頭數(shù)越大,曲線月平滑,誤差越大。內(nèi)容二:t=0:999;xs
7、=10*sin(6.28*t/500);figure;subplot(2,1,1);plot(t,xs);grid;ylabel(amplitude);title(input of periodic signal);randn(state,sum(1000*clock);xn=randn(1,1000);subplot(2,1,2);plot(t,xn);grid;ylabel(amplitude);xlabel(t);title(random noise signal);xn = xs+xn;xn = xn. ; dn = xs. ; M = 5 ; rho_max = max(eig(xn
8、*xn.); mu = rand()*(1/rho_max) ; yn,W,en = LMS(xn,dn,M,mu);figure;subplot(2,1,1);plot(t,xn);grid;ylabel(amplitude);xlabel(t);title(input of filter);subplot(2,1,2);plot(t,yn);grid;ylabel(amplitude);xlabel(t);title(output of adaptive filter);figure plot(t,yn,b,t,dn,g,t,dn-yn,r);grid;legend(output of a
9、daptive filter,expected output,deviation);ylabel(amplitude);xlabel(t);title(adaptive filter);權(quán)系數(shù)和內(nèi)容一種類似mu = rand()*(15/rho_max) mu = rand()*(0.1/rho_max)抽頭數(shù)M= 5M=20M=30內(nèi)容三:clear;clc;t=0:999;xs=0.5*square(6.28*t/500,50);figure;subplot(2,1,1);plot(t,xs);grid;ylabel(amplitude);title(input of periodic s
10、ignal);randn(state,sum(1000*clock);xn=sin(314*t);subplot(2,1,2);plot(t,xn);grid;ylabel(amplitude);xlabel(t);title(random noise signal);xn = xs+xn;xn = xn. ; dn = xs. ; M = 20 ; rho_max = max(eig(xn*xn.); mu = rand()*(1/rho_max) ; yn,W,en = LMS(xn,dn,M,mu);figure;subplot(2,1,1);plot(t,xn);grid;ylabel(amplitude);xlabel(t);title(input of filter);subplot(2,1,2);plot(t,yn);grid;ylabel(amplitude);xlabel(t);title(output of adapt
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 入戶維修調(diào)研報(bào)告范文
- 熱成型實(shí)驗(yàn)報(bào)告范文
- 2025年度智慧城市建設(shè)合作協(xié)議解除合同書
- 二零二五年度網(wǎng)絡(luò)游戲押金轉(zhuǎn)讓與賬號安全保障協(xié)議
- 二零二五年度平面模特時尚雜志封面拍攝合同書
- 二零二五年度獵聘市場營銷人才委托協(xié)議
- 二零二五年度輪胎品牌授權(quán)與銷售代理合同
- 二零二五年度交通事故保險(xiǎn)賠償協(xié)議書(含事故調(diào)查服務(wù))
- 2025年度社區(qū)餐飲合伙經(jīng)營與社區(qū)服務(wù)合同
- 二零二五年度農(nóng)村土地流轉(zhuǎn)合同轉(zhuǎn)讓與生態(tài)保護(hù)協(xié)議
- 2025年中國中煤校園招聘筆試參考題庫含答案解析
- 開曼群島公司法2024版中文譯本(含2024年修訂主要內(nèi)容)
- 東北師大附屬中學(xué)2025屆高考數(shù)學(xué)四模試卷含解析
- 漏采血標(biāo)本不良事件根因分析
- 安全管理工作的成果與亮點(diǎn)
- 糧食儲備庫內(nèi)圓筒鋼板倉及附房工程施工組織設(shè)計(jì)
- 學(xué)校科技節(jié)活動方案
- 賽事運(yùn)營創(chuàng)新模式
- 金融服務(wù)消費(fèi)糾紛調(diào)解工作規(guī)范
- 《國際貿(mào)易實(shí)務(wù)(英文版)》(英文課件) - Ch 1 Introduction to International Trade Practices-Ch 5 Price
- 新生兒科、兒科《新生兒窒息復(fù)蘇》理論考試試題
評論
0/150
提交評論