Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Maximum Ratio combiner in Multipath Rayleigh fading channel

Status
Not open for further replies.

Shwan

Newbie level 6
Joined
Nov 26, 2007
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
UK
Activity points
1,342
maximum ratio combiner

Hi,
Could you please help me how to use the Maximum Ratio combination in Multipath Rayleigh fading channel, using Matlab comands, and have a look for the program bellow you will see the error that I have, and could you tell me the problem, and how to solve it.

clear all
whos
SNR=0:2:20; %Range of noise in dB.
M=2; % DBPSK
n=50000;
c=rayleighchan(1/10000,100,[0 2e-5],[0 -9]); %Rayleigh Channel that uses
% data rate 10000 bit/second,
x=randint(n,1,M); % Randomly generate data bits
xmod=dpskmod(x,M); %Modulate the input signal
yfaded=filter(c,xmod); %Effect of the channel
for i=1:length(SNR)
y=awgn(yfaded,SNR(i));

z=dpskdemod(y,M);
rs=sum(z.*conj(y),1);
[num,ber(i)]=biterr(x,rs);
end
semilogy(SNR,ber);

grid;
xlabel('SNR(dB)')
ylabel('BER')
title('BER for DBPSK over Multipath Fading(Rayleigh Channel)')

Cheers
Shwan
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top