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.

problem with plotting BER of BPSK

Status
Not open for further replies.

saeddawoud

Full Member level 3
Joined
Apr 27, 2007
Messages
153
Helped
6
Reputation
12
Reaction score
1
Trophy points
1,298
Activity points
2,144
BER of BPSK

Hello,

I am trying to plot the BER of BPSK, but it does not work correctly, I do not know why. I am using the following code:

Code:
M=2;
chan=rayleighchan(1/10000,100);
tx=randint(50000,1,M);
txSig=pskmod(tx,M);
y=filter(chan,txSig);

SNR=0:2:20;
for n=1:length(SNR)
    rxSig=awgn(y,SNR(n));
    rx=pskdemod(rxSig,M);
    [nErrors,BER(n)]=biterr(tx,rx);
end

BERtheory = berfading(SNR,'psk',M,1);
semilogy(SNR,BER,'k-*',SNR,BERtheory,'r');

If PSK substituted by dpsk, the theoritical and empirical curves are almost the same, where it is not the case for the psk. I think it has to do with phase or something like that. How can I solve this problem?

Thanks in advance
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top