3.7 | 3 ratings Rate this file 37 Downloads (last 30 days) File Size: 2.07 KB File ID: #25693

BER of OFDM in rayleigh enviroment using BPSK modulation


Mohammad Tahir


script utilizing communication toolbox functions.

| Watch this File

File Information

the results i.e theoretical and simulated are in good agreement with each other...communication toolbox is very handy

Required Products Communications System Toolbox
MATLAB release MATLAB 7.9 (R2009b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (10)
17 Feb 2014 SUNITA SIRVI


17 May 2013 Bruno n1ng

Bruno n1ng

Hi again, I found the editing details for M-QAM here:


Comment only
17 May 2013 Bruno n1ng

Bruno n1ng

Hi Mohammad,

When simulating 16-QAM, there is an error:

??? Subscript indices must either be real positive integers or

Error in ==> BER_OFDM_RAYLEIGH at 32
pilot_ins_data=[zeros(nsym,6) par_data(:,[1:nbitpersym/16])
zeros(nsym,1) par_data(:,[nbitpersym/16+1:nbitpersym])
zeros(nsym,5)] ;

How may this be resolved?

Comment only
07 Mar 2012 mathix1


what is the purpose of the pilot insertion?

Comment only
10 Apr 2011 Kei


Your code specifies sample time is 1/10000 in rayleighchan. However, I think the sample time of the code is 1/80. Is my understanding wrong?

> h=rayleighchan(1/10000,10);


07 Apr 2011 Tewodros Hassen

Tewodros Hassen

what are the terms: 10log10(52/64) and 10log10(64/80) and the minus term in the snr definition?


Comment only
08 Mar 2011 Mohammad Tahir

Mohammad Tahir

Because we have assumed ideal channel estimation in this case and the improvement of OFDM over BPSK rayleigh will be seen when we have imperfect channel equalization of frequency selective channel which cause ISI at the receiver. (please ignore the first one due to typo)

Comment only
08 Mar 2011 Luís Miguel

Luís Miguel

Why OFDM RAYLEIGH is equal to the BPSK RAYLEIGH , should not it be better?

please help me

Comment only
10 Oct 2010 Imran Ali

Imran Ali

Hope this answer is not too late.
The modulation object in the program uses modem.pskmod (see line 15 in program). You need to change it modem.qammod, if you want to carry out M-QAM simulation with this program.

Comment only
09 Jul 2010 Huy Nguyen

Huy Nguyen

Hi Mohammad,

Thanks alot for your code.

I'm trying to simulate for BER of OFDM in rayleigh fading using BPSK and M-QAM. It's working fine with AWGN. When I applied the rayleigh function as your code, its working only with BPSK and QPSK....not for other M-QAM.

Please give me an idea!

Many thanks.

Contact us