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.
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
R13 users-to clarify the q in commented line 114,add this:
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
On line 53-changed Es to Eb to get the m-file to run correctly. JC
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.