FXLMS MATLAB source code

Status
Not open for further replies.

jalal_merhi

Newbie level 4
Joined
May 16, 2007
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,326
fxlms matlab

hi all,

i have this matlab function code to provide LMS algorithm

function[h,y] = lms(x,d,delta,N)
% [w,y] = lms(x,d,delta,N)
% w = estimated FIR filter
% y = output array y
% x = input array x
% d = desired array d
% delta = stepsize
% N = length of the FIR filter

M = length(x); y = zeros(1,M);
w = zeros(1,N);

for n = N:M
x1 = x(n:-1:n-N+1)
y = w*x1'
e = d - y
w = w + delta*e*x1;

how can i expand this program to become the FXLMS algorithm to implement the Active Noise COntrol??
is there anybody who can help me to expand this program to be the FXLMS algorithm??
i'm so desperately need help....
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…