(24,12) Golay code encoder and MAP soft-decision decoder for Matlab.
The decoding method is based on a simple test for a noisy received codeword with all legal codewords, finding the legal codeword with the minimum Euclidean Distance from the received codeword as the correct one.
Theoretically, MAP soft-decision decoding can correct up to 6 bits of error per codeword, while hard decision decoding can correct only 3.
Simulation results are represented below.