File Exchange

image thumbnail

BER curve for hard decision block code BPSK

version 1.0 (2.24 KB) by

A simple m-file to compute the experiemntal BER of coded BPSK

4.33333
4 Ratings

1 Download

Updated

View License

The simplest Hamming code with BPSK is simulated in a single m-file. The decoder uses hard decision assuming a BPSK constellation.
The decoder is the standard syndrome decoder. The simulation produces the experimental BER v EbNo curve. The expected theoretical performance is also plotted for easy comparison/validation.

Comments and Ratings (6)

jongmin kim

Muhammad Mohsen

good

nan lo

J C

My last input for a while-The q.m function is in the MPSK zipped fie. You need to load all of the 4 files to your directery and path to run each program. Whew-should have looked at MPSK first. JC

J C

R13 users-to clarify the q in commented line 114,add this:
Comment line111
x1=sqrt(2.*coderate.*EbNo);add line 115
q=.5.*erfc((x1/sqrt(2));add line 116
Comment line 117
Note: q is used as an undefined variable in the other soft and hard Verterbi decoder files published by Dr. B. Gremont so it will need defining. Rating N/A JC

J C

On line 53-changed Es to Eb to get the m-file to run correctly. JC

MATLAB Release
MATLAB 7.3 (R2006b)

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

» Watch video