File Exchange

image thumbnail

BPSK Simulation for AWGN & Rayleigh Channels

version 1.0 (3.47 KB) by

The MATLAB programs simulate the BPSK receiver.

35 Ratings



View License

We simulate the generation of random variables r0 and r1, which constitutes the input to detector. We begin by generating a binary sequence of 0?s and 1?s that occur with equal probability and are mutually (statistically) independent. For this, we use a Random number generator that generates a uniform random number between 0 and 1. If the number generated is in range (0, 0.5), the binary source output is 0 else it is 1. if 0 is generated, then r0=E+n0 and r1=n1. if a 1 is generated r0=n0 and r1=E+n1.
The additive noise components n0 and n1 are generated by mean of two gaussian noise generators there means are zero and there variances, ó2 = E*N0/2. For convenience we take E=1(normalized value) and vary ó2 . The SNR (E/N0) is then equal to 1/2ó2. The detector output is compared with the binary transmitted sequence and an error counter is used to count the number of bit errors.

Comments and Ratings (48)

Ammar Hadi

good work

i am waiting for suggestions in matlab


Tito (view profile)

Lo analizare, estoy trabajando con sistemas MIMO y necesito modelar de forma muy precisa los canales. Gracias.

yang lin

I need to come on

d d



jitendera singh

iker mourad

i was information of parameter of agn

tadele shife

rupali parulkar

miral PATEL

its gonna be more fantasic if u provide the full description of both awgn and rayleigh fading channel

keonil kim


ramesh.s sakthievel

need improvement

n n

Good description

Bigg butt

does anyone know where I can buy volleyballs?

sajjad ali

this code will be used in developing of the the mobile model in simulink software

la da


Ali Abedi


imran ahsan

ravi kiran

hi .. i need bpsk transceiver program.. can u help me in that please.. plz reply to my mail..

Shyam Sundar

AH ah..a part of my project..looks good.

han dong

It looks perfect

ismail ali

my research

ismail ali

please send me any new in the field of matlab simulation of OFDM and CDMA

kalle verdi

Sameh Shawky

so good

Amenah Malik

This code needs improvement! Eb/No is being confused with S/N in rayleigh simulation.

liu wei


Mani Pradhan

great work!!!!!

almas ahmed

but need more clear implementation i.e. i m new user BPSK for awgn....

Kapil Bajaj

Good job Done , Keep it up , Good look for future

wang jie

ccc dd


gunci h

ytt ytt

Sriram Narayanan

Rajdeep this is an excellent job...continue right in this direction and sometime you shall receive that so called kick to rise up...all the best for your future....

Francisco Castillo

Elamaran M

dear sir,
iam doing the project in ofdm with bpsk modulation and performing the ber with, i have need of matlab program.

ahmed alWhidi

ali reza

Frank Nnadi

i am presently writing a thesis in the use of MATLAB for calculating Bit-error rates of Uncoded BPSK System and coded BPSK system using. Where can i get self expalnatory material on this.

Roy Schestowitz

Nice picture, but what does it have to do with the code?

shravan adurukatla

i am doing project in spread spectrum,but i done know much about simulation in please some boby can help me with direct sequence spread spectrum simulation..please i am waiting forward for u'r reply..

Navy Wings

How about posting it under a more widely used file type?

hakan hýzaar


srez liao

lollo casasanta



BSD Lisence


BSD Lisence


MATLAB Release
MATLAB 6.1 (R12.1)

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

» Watch video