Turbo product code (TPC) encoder
Communications Toolbox / Error Detection and Correction / Block
The TPC Encoder block performs 2D turbo product code (TPC) encoding of an input message. The product code is a 2D concatenation of linear block codes. The linear block codes can be a parity check code, a Hamming code, or a BCH code capable of correcting two errors. Extended and shortened codes can be applied independently on each dimension. For a description of 2D TPC encoding, see Algorithms.
For information about valid code pairs and the errorcorrecting capability for each valid code pair, see Component Code Pairs.
Data Types 

Multidimensional Signals 

VariableSize Signals 

Turbo product codes (TPC) are a form of concatenated codes used as forward errorcorrecting (FEC) codes. Two or more component block codes, such as systematic linear block codes, are used to construct TPCs. This encoder implements 2D product code encoding, as described in [1], using two Linear Block Codes.
[1] Pyndiah, R. M. "NearOptimum Decoding of Product Codes: Block Turbo Codes." IEEE Transactions on Communications. Vol. 46, Number 8, August 1998, pp. 1003–1010.