資源簡介
這是一個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
評論
共有 條評論