基于Matlab的自适应滤波实现

时间:2012-10-15 02:25:11
【文件属性】:

文件名称:基于Matlab的自适应滤波实现

文件大小:52KB

文件格式:RAR

更新时间:2012-10-15 02:25:11

Matlab 自适应滤波 lms rls

包含了lms,rls等多种算法. 例如lms: %LMS4 Problem 1.1.2.1 % % 'ifile.mat' - input file containing: % I - members of ensemble % K - iterations % sigmax - standard deviation of input % lambdaW, sigmaW - parameters of first-order Markov % processes which generate Wo % Wo0 - initial coefficient vector of plant % sigman - standard deviation of measurement noise % mu - convergence factor % % 'ofile.mat' - output file containing: % ind - sample indexes % texcMSE - total excess MSE clear all % clear memory load ifile; % read input variables L=length(Wo0); % plant and filter length N=L-1; % plant and filter order MSE=zeros(K,1); % prepare to accumulate MSE*I MSEmin=zeros(K,1); % prepare to accumulate minMSE*I for i=1:I, % ensemble X=zeros(L,1); % initial memory Wo=Wo0; % initial coefficient vector of plant W=zeros(L,1); % initial coefficient vector x=randn(K,1)*sigmax; % input nW=randn(L,K)*sigmaW; % input to Markov processes which generate Wo n=randn(K,1)*sigman; % measurement noise for k=1:K, % iterations X=[x(k) X(1:N)]; % new input vector d=Wo'*X; % desired signal sample y=W'*X; % output sample e=d+n(k)-y; % error sample Wo=lambdaW*Wo+nW(:,k); % new coefficient vector of plant W=W+2*mu*e*X; % new coefficient vector MSE(k)=MSE(k)+e^2; % accumulate MSE*I MSEmin(k)=MSEmin(k)+(n(k))^2; % accumulate MSEmin*I end end ind=0:(K-1); % sample indexes texcMSE=(MSE-MSEmin)/I; % calculate total excess MSE save ofile ind texcMSE; % write output variables


【文件预览】:
matlab_algorithms
----pte1.m(2KB)
----tlms1.m(2KB)
----iir3.m(3KB)
----rbf.m(2KB)
----olsblms.m(3KB)
----nlrls2.m(2KB)
----afqrrls1.m(3KB)
----iir1.m(2KB)
----ar.m(939B)
----se1.m(1KB)
----mlp.m(2KB)
----ofile.mat(230B)
----qrrls1.m(3KB)
----rls4.m(2KB)
----dlcllms.m(3KB)
----eflrls2.m(3KB)
----vlms.m(1KB)
----sgd.m(134B)
----nlms2.m(1KB)
----cfdlms.m(3KB)
----tlms2.m(2KB)
----lrls2.m(3KB)
----lms4.m(2KB)
----lms2.m(1KB)
----eflrls3.m(2KB)
----fqrrls2.m(3KB)
----lms5.m(1KB)
----sfrls1.m(3KB)
----brls.m(1KB)
----se2.m(1KB)
----lms1.m(2KB)
----qround.m(224B)
----nlms1.m(1KB)
----lrls1.m(3KB)
----eflrls1.m(3KB)
----qrrls2.m(3KB)
----cosmod_4_64.mat(4KB)
----fqrrls3.m(5KB)
----ifile.mat(624B)
----lms6.m(1KB)
----olcm_4_64.mat(4KB)
----afqrrls2.m(3KB)
----sfrls2.m(3KB)
----rls1.m(2KB)
----crbf.m(2KB)
----rls3.m(2KB)
----sfrls3.m(2KB)
----vrls.m(1KB)
----iir2.m(3KB)
----sgm.m(108B)
----rls2.m(2KB)
----rls5.m(2KB)
----lms3.m(1KB)
----iir4.m(3KB)
----nlrls1.m(3KB)
----fqrrls1.m(3KB)
----pte2.m(2KB)

网友评论

  • 还好,很丰富,就是好难看懂啊