东南大学统计信号处理实验四.docx

上传人:b****2 文档编号:761275 上传时间:2023-04-30 格式:DOCX 页数:19 大小:488.18KB
下载 相关 举报
东南大学统计信号处理实验四.docx_第1页
第1页 / 共19页
东南大学统计信号处理实验四.docx_第2页
第2页 / 共19页
东南大学统计信号处理实验四.docx_第3页
第3页 / 共19页
东南大学统计信号处理实验四.docx_第4页
第4页 / 共19页
东南大学统计信号处理实验四.docx_第5页
第5页 / 共19页
东南大学统计信号处理实验四.docx_第6页
第6页 / 共19页
东南大学统计信号处理实验四.docx_第7页
第7页 / 共19页
东南大学统计信号处理实验四.docx_第8页
第8页 / 共19页
东南大学统计信号处理实验四.docx_第9页
第9页 / 共19页
东南大学统计信号处理实验四.docx_第10页
第10页 / 共19页
东南大学统计信号处理实验四.docx_第11页
第11页 / 共19页
东南大学统计信号处理实验四.docx_第12页
第12页 / 共19页
东南大学统计信号处理实验四.docx_第13页
第13页 / 共19页
东南大学统计信号处理实验四.docx_第14页
第14页 / 共19页
东南大学统计信号处理实验四.docx_第15页
第15页 / 共19页
东南大学统计信号处理实验四.docx_第16页
第16页 / 共19页
东南大学统计信号处理实验四.docx_第17页
第17页 / 共19页
东南大学统计信号处理实验四.docx_第18页
第18页 / 共19页
东南大学统计信号处理实验四.docx_第19页
第19页 / 共19页
亲,该文档总共19页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

东南大学统计信号处理实验四.docx

《东南大学统计信号处理实验四.docx》由会员分享,可在线阅读,更多相关《东南大学统计信号处理实验四.docx(19页珍藏版)》请在冰点文库上搜索。

东南大学统计信号处理实验四.docx

东南大学统计信号处理实验四

统计信号处理实验四

目的:

掌握自适应滤波的原理;

内容一:

假设一个接收到的信号为:

d(t)=s(t)+n(t),其中s(t)=A*cos(wt+a),已知信号的频率w=1KHz,而信号的幅度和相位未知,n(t)是一个服从N(0,1)分布的白噪声。

为了利用计算机对信号进行处理,将信号按10KHz的频率进行采样。

1)通过对

进行自适应信号处理,从接收信号中滤出有用信号

2)观察自适应信号处理的权系数;

3)观察在不同的收敛因子

下的滤波结果,并进行分析;

4)观察在不同的抽头数N下的滤波结果,并进行分析。

内容二:

在实验一的基础上,假设信号的频率也未知,重复实验一;

内容三:

假设s(t)是任意一个峰峰值不超过1的信号(取幅度为0.5的方波),n(t)是一个加在信号中的幅度和相位未知的,频率已知的50Hz单频干扰信号(可以假设幅度为1)。

信号取样频率1KHz,试通过自适应信号处理从接收信号中滤出有用信号s(t)。

要求:

1)给出自适应滤波器结构图;

2)设计仿真计算的Matlab程序,给出软件清单;

3)完成实验报告,对实验过程进行描述,并给出试验结果,对实验数据进行分析。

 

%LMS.m

function[yn,W,en]=LMS(xn,dn,M,mu,itr)

ifnargin==4

itr=length(xn);

elseifnargin==5

ifitr>length(xn)|itr

error('iterationsnumbererror!

');

end

else

error('checkparameter!

');

end

en=zeros(itr,1);

W=zeros(M,itr);

fork=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;

end

yn=inf*ones(size(xn));

fork=M:

length(xn)

x=xn(k:

-1:

k-M+1);

yn(k)=W(:

end).'*x;

end

内容一:

t=0:

999;

xs=10*sin(6.28*t/500);

figure;

subplot(2,1,1);

plot(t,xs);

grid;

ylabel('amplitude');

title('inputofperiodicsignal');

randn('state',sum(1000*clock));

xn=randn(1,1000);

subplot(2,1,2);

plot(t,xn);grid;

ylabel('amplitude');

xlabel('t');

title('randomnoisesignal');

xn=xs+xn;

xn=xn.';

dn=xs.';

M=5;

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('inputoffilter');

subplot(2,1,2);

plot(t,yn);grid;

ylabel('amplitude');

xlabel('t');

title('outputofadaptivefilter');

figure

plot(t,yn,'b',t,dn,'g',t,dn-yn,'r');grid;

legend('outputofadaptivefilter','expectedoutput','deviation');

ylabel('amplitude');

xlabel('t');

title('adaptivefilter');

②观察自适应信号处理的权系数

权系数非常小

③观察在不同的收敛因子

下的滤波结果,并进行分析

将收敛因子变大mu=rand()*(15/rho_max)

滤波效果变差

将收敛因子变小mu=rand()*(0.1/rho_max)

曲线变得平滑,误差大。

④观察在不同的抽头数N下的滤波结果,并进行分析。

M=5

M=10

M=30

抽头数越大,曲线月平滑,误差越大。

内容二:

t=0:

999;

xs=10*sin(6.28*t/500);

figure;

subplot(2,1,1);

plot(t,xs);

grid;

ylabel('amplitude');

title('inputofperiodicsignal');

randn('state',sum(1000*clock));

xn=randn(1,1000);

subplot(2,1,2);

plot(t,xn);grid;

ylabel('amplitude');

xlabel('t');

title('randomnoisesignal');

xn=xs+xn;

xn=xn.';

dn=xs.';

M=5;

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('inputoffilter');

subplot(2,1,2);

plot(t,yn);grid;

ylabel('amplitude');

xlabel('t');

title('outputofadaptivefilter');

figure

plot(t,yn,'b',t,dn,'g',t,dn-yn,'r');grid;

legend('outputofadaptivefilter','expectedoutput','deviation');

ylabel('amplitude');

xlabel('t');

title('adaptivefilter');

②权系数和内容一种类似

③mu=rand()*(15/rho_max)

mu=rand()*(0.1/rho_max)

 

④抽头数

M=5

M=20

M=30

内容三:

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('inputofperiodicsignal');

randn('state',sum(1000*clock));

xn=sin(314*t);

subplot(2,1,2);

plot(t,xn);grid;

ylabel('amplitude');

xlabel('t');

title('randomnoisesignal');

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('inputoffilter');

subplot(2,1,2);

plot(t,yn);grid;

ylabel('amplitude');

xlabel('t');

title('outputofadaptivefilter');

figure

plot(t,yn,'b',t,dn,'g',t,dn-yn,'r');grid;

legend('outputofadaptivefilter','expectedoutput','deviation');

ylabel('amplitude');

xlabel('t');

title('adaptivefilte');

 

 

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 法律文书 > 调解书

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2