Forums

smart antennas LMS and NLMS

Started by sale...@yahoo.com April 12, 2009
hello,

i am doing my project in adaptive beamforming algorithms in smart antennas comparing LMS and NLMS.

i have plotted the output beamformer polar pattern and able to calulate the weights

however am not able to analyse the errors in learning curves. this are my codes..

CAN ANY ONE HELP ME OUT IN HOW HOW TO ANALYSE ERRORS AND SINR...

[ AM NOT WRITING WHOLE CODES JUST PART OF IT]

FOR STEERING VECTOR vS=exp(1j*(i-1)*2*pi*d*sin(thetaS))

w = zeros(M,1);
for snr = 10; % signal to noise ratio

X=(vS+vI);

Rx=(X*X'); % correlation matrix..

Rn = awgn(Rx,snr);
end

mu=1/(2*real(trace(Rx))) % mu = input('What is step size?')

wi=zeros(M,max(it));
for n = 1:length(S) % selecting the training inputs
x = S(n)*vS + I(n)*vI;
y=w'*x; % y = w*x.
e = conj(S(n)) - y ;
esave(n) = (abs(e)^2);
w=w+mu*conj(e)*x; % w = w +mu*e*conj(x) calculating the ------WEIGHT----
wi(:,n)=w;
yy(n)=y;
end
w = (w./w(1));
can any please help me out..??