Info

This question is closed. Reopen it to edit or answer.

error curve and conclutions from the error - echo cancellation mini project

1 view (last 30 days)
hi,im working on this subject ,my main code is lms algorithm,it wrks very well but id like to add a good insite on the error signal?
how can i display it in a plot with conclutions about the bheavior of the error like a function depends on the mu?or the error distirbution function?
here the main job:
for i=1:2680
total_signal(i)=echoed_signal_new(i)+person_2(i)
end
w=zeros(1,length(n))
for i=1:length(n)
y_desired(i)=w(i)'*new_x(i)
e(i)=total_signal(i)-y_desired(i)
if i<250
mu=0.32
if i>=250 && i<=1000
mu=0.22 %%%%starting fast converges and then slowly to get apropriet coefficient
if i>1000
mu=0.07
end
end
end
w(i+1)=w(i)+mu*e(i)*new_x(i) %%%determing coefficients
end
figure(6)
subplot(5,1,1)
plot(n,new_x(n))
title('desired signal')
xlim([0 2680])
subplot(5,1,2)
plot(n,person_2)
title('the interferece
subplot(4,1,2)
semilogy(n,abs(e(n)))
title('error amplitude ')
xlabel('samples')
ylabel('error value')
xlim([0 2680])
subplot(4,1,3)
plot(n,total_signal(n))
title('echoed+ person2 and noise from transmition line and noise room')
xlim([0 2680])
ylim([-2 2])
subplot(4,1,4)
plot(n,y_desired(n))
title(' estimated adaptive output')
xlim([0 2680])
ylim([-2 2])
figure(6)
plot(n,w(n))
title('wieght function')
xlim([0 2680])
can someone help?

Answers (0)

This question is closed.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!