Matlab - Diversity Error Probability formulas

Status
Not open for further replies.

pearl*

Newbie level 1
Joined
Jan 28, 2014
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
10
Hello!
I am writing two Matlab scripts to calculate BER vs Eb/N0 for SIMO Selection Combining and Generalized Selection Combining.
I need to calculate simulation BER versus theory BER for M-PSK and M-QAM.
I would appreciate if someone can give me (or provide me with a link or something) the theoretical BER formulas for:
a) Selection Combining with QPSK or 8PSK (please, not BPSK, this was given as an example)
b) Selection Combining with 16QAM
c) Generalized Selection Combining with QPSK or 8PSK
d) Generalized Selection Combining with 16QAM

I have found some formulas online, but I need them in a format to implement them in Matlab (maybe using Q or errfunc?).
For instance, I am attaching some code of theoretical BPSK BER for Selection Combining.

Code:
% Theoretical Values of BER for BPSK
    EbNos = 10.^(EbNodBs/10);    
    theoryBER_ini = 0;
    for kk=0:(nRx(j_nRx))
        theoryBER_ini = theoryBER_ini + ((-1)^kk) * nchoosek((nRx(j_nRx)),kk) * sqrt(EbNos ./ (EbNos+kk));
    end
    theoryBER(nRx(j_nRx),:) = (1/2) * theoryBER_ini;

I would be really grateful if someone gave me some direction, I am completely new to all these...
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…