5g ldpc codes

August 28, 2026 ยท View on GitHub

To test the LDPC encoding and decoding functions, run the following function under matlab

test_all_ldpc_cases

The LDPC decoding function decLDPC_layered.m is from Simulator for LDPC decoding in IEEE 802.11n and the author is Christoph Studer. I made some small modifications on it to accelerate its execution.

The two included excel files are from 3gpp. The matlab codes other than decLDPC_layered.m follow the MIT license.

To regenerate parity_check_matrices_protocol_1.mat and _2.mat from the 3gpp excel files, run:

python regenerate_matrices.py