I'm looking for Matlab codes for LMS and RLS Algorithms in Smart Antenna Technology if you have any ,please post it to me. Thanks

댓글 수: 5

John D'Errico
John D'Errico 2014년 6월 9일
Before that, you should add how much you are willing to pay for us to do your work. Surely it is worth something? If not, then why would we bother to do your job?
=1; % normalized frequency
C=3e8;
Landa=C/f;
d=Landa/2;
PETA=2*pi/Landa;
N=8;
n_b=1000 ; % number of samples
n=linspace(0,2*pi/f,n_b);
thetad=0 ; %AoA
theta_d=thetad*pi/180;
Ad=exp(-j*PETA*d*sin(theta_d)*[0:N-1])'; %steering vector for the desired signal
msg = randi(1,n_b); % Random binary data stream
Vs=1;
s =Vs* pskmod(msg,2); %BPSK modulation
SNR=10; % channel SNR
S=Ad*s; % received signal by the array; matrix N by n_b
x = awgn(S,SNR) ;
W_LMS=zeros(N,1); %Intial weight vector
Mu=0.05; %step size
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
for K=1:100
X=x(:,K);
D=s(K);% reference signal
e_LMS(K)=D-W_LMS'*X; %error signal
W_LMS=W_LMS+Mu*X*conj(e_LMS(K)); %generated weight vector
end
theta = -pi/2:.01:pi/2;
AF = zeros(1,length(theta));
w=W_LMS;
N=8;
for i = 1:N
AF = AF + w(i)'.*exp(1j*(i-1)*2*pi*d*sin(theta));
end
w = (w./w(1));
figure
plot(theta*180/pi,abs(AF)/max(abs(AF)),'k')
plot(theta*180/pi,abs(AF)/max(abs(AF)),'k')
xlabel('AOA (deg)')
ylabel('|AF_n|')
axis([-90 90 0 1.1])
set(gca,'xtick',[-90 -60 -30 0 30 60 90])
the world is very lucky that there are not too many people like you
debasis  mohanta
debasis mohanta 2015년 10월 31일
sir kindly help me i want the code of LMS algorithm used in the adAPTIVE FILTER..kindly help me
yibeltal  andualem
yibeltal andualem 2020년 5월 27일
please help me adaptive lms algorithm for interference management in mm wave massive mimo matlab code
yibeltal  andualem
yibeltal andualem 2020년 5월 27일
Mr. yousef yousef please complete the above code

댓글을 달려면 로그인하십시오.

답변 (2개)

Christian  Okpara
Christian Okpara 2015년 1월 30일

0 개 추천

Pls Yousef, am really interested in this smart antenna. What frequency was this antenna modeled for and is it suitable for broadband application?

카테고리

질문:

2014년 6월 9일

댓글:

2022년 1월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by