This is an implementation of (7,4) hamming code using belief propagation
Version 1.0.0.0 (383 KB) by
Shuang Wang
An implementation of (7,4) hamming code using belief propagation
Given a parity-check matrix,
pchkArray = [1, 1, 1, 0, 1, 0, 0;
0, 1, 1, 1, 0, 1, 0;
1, 0, 1, 1, 0, 0, 1];
for (7,4) hamming code
and noiseCodeword = [1, 0, 1, 1, 0, 0, 0]; with 1 bit error
The belief propagation algorithm is used to correct the error.
Cite As
Shuang Wang (2025). This is an implementation of (7,4) hamming code using belief propagation (https://se.mathworks.com/matlabcentral/fileexchange/39669-this-is-an-implementation-of-7-4-hamming-code-using-belief-propagation), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2008b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Hamming in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
