资源简介
这是一个RLS和LMS的比较的信道均衡算法。
代码片段和文件信息
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%LMS自适应滤波器性能分析
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clear
clc
close all
%%%%%%%%%%%%%%参数设置%%%%%%%%%%%%%%%%%%%%%%%
w=3.2;
step_len=0.075;
variance_v=0.001;
repeat_times=200;
iteration_times=2000;
filt_len=2;
delay=fix(filt_len/2)-1;
%%%%%%%%%%%%%%%%%%%%变量及数组初始化%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Chan_factor=(1+cos(2*pi*([1:1:3]-2)/w))/2;
Square_err=zeros(repeat_timesiteration_times);
%%%%%%%%%%%%%外循环,重复做repeat_timws次实验,平均值%%%%%%%%%%%%%%%%
for loop1=1:repeat_times
%%%%%%%%%%%%%%内循环变量及数组初始化%%%%%%%%%%%%%%%%%%%%%%%%
Source=zeros(iteration_times1);
W=zeros(filt_len1);
%%%%%%%%%%%%%内循环,做iteration_times次迭代%%%%%%%%%%%%%%%%%%%%%%%%%%%%
for i=1:iteration_times
%%%%%%%%%%%%%%信源,产生等概率分布的正负1%%%%%%%%%%%%%%%%%%%%%%%%%%%%
if r
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1624 2009-03-29 11:34 RLS与LMS算法分析及比较\LMSnew.m
文件 1790 2009-03-29 11:34 RLS与LMS算法分析及比较\RLSnew.m
文件 735 2009-03-29 11:29 RLS与LMS算法分析及比较\rls_lms.m
文件 114 2009-03-29 11:21 RLS与LMS算法分析及比较\main.m
文件 1764 2009-03-29 11:23 RLS与LMS算法分析及比较\RLSnew.asv
目录 0 2009-04-14 10:16 RLS与LMS算法分析及比较
----------- --------- ---------- ----- ----
6027 6
评论
共有 条评论