In steeepest descsnt, you have used A = D(1,n) while in LMS, u have used A = D(1:n). Why? This is the reason LMS is giving good result. Else both have same if we use A = D(1:n)
clc; %Generando señal deseada t = 0.001:0.001:1; D = 2*sin(2*pi*50*t); %Generar señal con ruido n = numel(D); A = D(1:n)+0.9*randn(1,n); M=25; w = zeros(1,M); wi = zeros(1,M); E = []; mu = 0.0005; for i=M:n E(i) = D(i)-wi*A(i:-1:i-M+1)'; wi = wi + 2*mu*E(i)*A(i:-1:i-M+1); end %Estimacion de la senyal Est = zeros(n,1); for i = M:n j = A(i:-1:i-M+1); Est(i) = ((wi)*(j)'); end Err = Est'-D; %Mostrar señales subplot(4,1,1),plot(D); title('Senyal deseada'); subplot(4,1,2),plot(A); title('Senyal con ruido') subplot(4,1,3), plot(Est); title('Senyal estimada') subplot(4,1,4), plot(Err); title('Senyal error')
Bhai, 27:22 , Line no:12 , (steepest descend) instead of D(1:n), you have written D(1,n) and the whole output came as bull shit. And the funnier part is that you didn't even realise it!!! A(t) signal dekkke her sumach me aaana chahiye, that it is wrong .
Why we have taken complex conjugate
Distance matrix oda characteristics polynomial &eigen values&energy&spectrum using matlab coding algorithm video send pannunga
Could you tell me the name of the book that you used?
can you share the matlab file of .m
In steeepest descsnt, you have used A = D(1,n) while in LMS, u have used A = D(1:n). Why?
This is the reason LMS is giving good result. Else both have same if we use A = D(1:n)
Can you guide me? Is this Program for Adaptive Noise Cancellation?
exactly
What is M
clc;
%Generando señal deseada
t = 0.001:0.001:1;
D = 2*sin(2*pi*50*t);
%Generar señal con ruido
n = numel(D);
A = D(1:n)+0.9*randn(1,n);
M=25;
w = zeros(1,M);
wi = zeros(1,M);
E = [];
mu = 0.0005;
for i=M:n
E(i) = D(i)-wi*A(i:-1:i-M+1)';
wi = wi + 2*mu*E(i)*A(i:-1:i-M+1);
end
%Estimacion de la senyal
Est = zeros(n,1);
for i = M:n
j = A(i:-1:i-M+1);
Est(i) = ((wi)*(j)');
end
Err = Est'-D;
%Mostrar señales
subplot(4,1,1),plot(D);
title('Senyal deseada');
subplot(4,1,2),plot(A);
title('Senyal con ruido')
subplot(4,1,3), plot(Est);
title('Senyal estimada')
subplot(4,1,4), plot(Err);
title('Senyal error')
Bhai, 27:22 , Line no:12 , (steepest descend) instead of D(1:n), you have written D(1,n) and the whole output came as bull shit. And the funnier part is that you didn't even realise it!!! A(t) signal dekkke her sumach me aaana chahiye, that it is wrong .