File Exchange

image thumbnail

Message Passing Algorithm for Decoding Binary LDPC Codes

version (17 KB) by Alan ZHOU
An MATLAB class that implements message passing decoding for binary LDPC codes.


Updated 26 Sep 2014

View Version History

View License

The mpdecoder project provides an MATLAB class mpdecoder that allows doing message passing (MP) decoding of binary LDPC codes. The MATLAB class mpdecoder actually calls the C++ class MPDecoder through the MATLAB MEX interface, which ensures its high decoding speed.

A standalone MATLAB LDPC decoder mpdec is also provided to give a clear view of how the algorithm works. No C/C++ is involved.

Please start from the documentation file 'readme.txt'.

A MSVC++ project demonstrating the use of the C/C++ MPDecoder class is available here:

Cite As

Alan ZHOU (2021). Message Passing Algorithm for Decoding Binary LDPC Codes (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

mohammed al ai baky

You have a problem when there is an LLR message --> check node = 0 in the 'mpdec' method. The problem is dividing by zero.
You can fix it by iterating over all the incoming messages to a check node except one, and iterating over that one too, instead of taking the product of all of them, and iterating once to divide by the iterated message value.

Jose Carmona

sudarshan ray p

Is it implemented fully in matlab or a wrapper of c++ is included for integration purpose.
please try to give the flowchart if possible.
thank you,

bo liao

vaibhavi panchal

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!