LMS&RLS.rar

  • Q369
    了解作者
  • matlab
    开发工具
  • 1KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 1
    下载次数
  • 2020-07-08 19:58
    上传日期
该程序为两个简单的传统的自适应波束形成算法,希望对大家有用
LMS&RLS.rar
  • LMS&RLS
  • LMSnew.m
    1.5KB
  • RLSnew.m
    1.7KB
内容介绍
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %RLS自适应滤波器性能分析 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% clear clc close all %%%%%%%%%%%%%%参数设置%%%%%%%%%%%%%%%%%%%%%%% w=2.9; forget_factor=0.995; variance_v=0.001; repeat_times=200; iteration_times=500; filt_len=13; delay=fix(filt_len/2)-1; %%%%%%%%%%%%%%%%%%%%变量及数组初始化%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Chan_factor=(1+cos(2*pi*([1:1:3]-2)/w))/2; Square_err=zeros(repeat_times,iteration_times); %%%%%%%%%%%%%外循环,重复做repeat_times次实验,平均值%%%%%%%%%%%%%%%% for loop1=1:repeat_times %%%%%%%%%%%%%%内循环变量及数组初始化%%%%%%%%%%%%%%%%%%%%%%%% Source=zeros(iteration_times,1); W=zeros(filt_len,1); P=eye(filt_len); Pi=zeros(filt_len,1); K=zeros(filt_len,1); %%%%%%%%%%%%%内循环,做iteration_times次迭代%%%%%%%%%%%%%%%%%%%%%%%%%%%% for i=1:iteration_times %%%%%%%%%%%%%%信源,产生等概率分布的正负1%%%%%%%%%%%%%%%%%%%%%%%%%%%% if rand<0.5 Source(i)=-1; else Source(i)=1; end end %%%%%%%%%%%%%%信道,滤波和加噪声%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Revdata=filter(Chan_factor,1,Source)+randn(iteration_times,1)*sqrt(variance_v); %%%%%%%%%%%%%%均衡器,基于LMS算法%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% for loop2=1:iteration_times-filt_len+1 U=Revdata(loop2:loop2+filt_len-1); d=Source(loop2+delay); Pi=P*U; K=Pi/(forget_factor+U'*Pi); e=d-W'*U; W=W+K*e; P=P/forget_factor-K*U'*P/forget_factor; Square_err(loop1,loop2)=e.^2; end end %%%%%%%%%%%%%%作图,显示结果%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Square_err_mean=sum(Square_err(:,:))/repeat_times; semilogy(Square_err_mean); figure(2); stem(W);
评论
    相关推荐
    • LMS.RLS1.rar
      RLSlMS的算法,各有一部分,都有出图的。自己亲测
    • LMS&RLS.zip
      带方向图和收敛曲线的lmsrls算法源码
    • LMS_RLS.zip
      代码可以运行,是关于LMSRLS算法的对比仿真实验,分别有在不同信噪比和不同步长下,学习曲线的对比图。
    • LMS&RLS.zip
      LMSRLS在三种信道和不同参数下的学习曲线,
    • LMS_RLS.rar
      自适应信号处理,LMSRLS的仿真程序,
    • LMSRLS算法
      包括这两个算法的matlab程序和简单的使用说明,其中在程序中有详细的说明,有利于大家加深对这两个算法的理解。
    • LMSRLS滤波算法
      LMSRLS滤波算法 里面两个算法是单独文件--函数的形式,里面含有两种算法的测试程序,希望能够给大家提供帮助!
    • 盲信道估计 lms rls
      在不同多普勒频移下LMSRLS、NLMS三种算法算法性能 比较
    • LMSRLS自适应算法
      自适应算法在自适应均衡器中的应用,仿真对输入信号、输出信号和期望信号比较。对LMSRLS两种自适应算法进行比较。
    • SIM800C_MQTT.rar
      使用SIM800C模块,使用MQTT协议,连接中国移动onenet平台,能实现数据的订阅、发布、存储等