Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

question about lms function in matlab?

Status
Not open for further replies.

Qais Ibrahim

Newbie level 3
Newbie level 3
Joined
Dec 22, 2013
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
15
im working on lms algorithm i want to use the lms function to update my filter coefficients instead of this :"w = w + mu * u * e(n)" any help please?
 

u can write a function yourself. follow this %%adsp question simulaation
clear all
close all
d=[1 -1 1 -1]';
noise=[-.1 0.1 0.2 0.1]';
h=2;
m=2;
w=[0 0]';
mu=0.339;
u=h.*d+noise;
for n=1:4,
if n==1,
u_use=[0 u(n)]';
elseif n==5,
u_use=[u(n-1) 0]';
else
u_use=[u(n-1) u(n)]';
end
d_hat(n)=w:),n)'*u_use;
err(n)=d(n)-d_hat(n);
w:),n+1)=w:),n)+mu*u_use*err(n)
end
u'.*w(2,n+1)
 
thank u but i want to use precisely the lms function to update my filter coefficients instead of this line "w:),n+1)=w:),n)+mu*u_use*err(n)"
 

then use functional block lms filter search matlab help
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top