View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
BER of OFDM in rayleigh enviroment using BPSK modulation

3.8 | 6 ratings Rate this file 15 Downloads (last 30 days) File Size: 2.07 KB File ID: #25693 Version: 1.0

BER of OFDM in rayleigh enviroment using BPSK modulation


Mohammad Tahir (view profile)


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 (14)
02 Jan 2017 Anil Karatay

02 Jan 2017 kawtar barri

21 Nov 2015 Ray

Ray (view profile)

M=modem.pskmod(2) is a bpsk modulation funciton. It takes the data generated by the random function and maps it to -1 and 1.

Comment only
25 Aug 2015 shreedhar dalal

What is M = modem.pskmod(2); % modulation object
it is giving me error.
How can i solve this error to run the code?

17 Feb 2014 SUNITA SIRVI

17 May 2013 Bruno n1ng

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

Comment only
17 May 2013 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

Kei (view profile)

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

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 (view profile)

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

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

please help me

Comment only
10 Oct 2010 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

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