Communications Blockset | ![]() ![]() |
Decode a linear block code to recover binary vector data
Library
Block sublibrary of Channel Coding
Description
The Binary Linear Decoder block recovers a binary message vector from a binary codeword vector of a linear block code.
The Generator matrix parameter is the generator matrix for the block code. For proper decoding, this should match the Generator matrix parameter in the corresponding Binary Linear Encoder block. If N is the codeword length of the code, then Generator matrix must have N columns. If K is the message length of the code, then the Generator matrix parameter must have K rows.
The input must contain exactly N elements. If it is frame-based, then it must be a column vector. The output is a vector of length K.
The decoder tries to correct errors, using the Decoding table parameter. If Decoding table is the scalar 0, then the block defaults to the table produced by the Communications Toolbox function syndtable
. Otherwise, Decoding table must be a 2N-K-by-N binary matrix. The rth row of this matrix is the correction vector for a received binary codeword whose syndrome has decimal integer value r-1. The syndrome of a received codeword is its product with the transpose of the parity-check matrix.
Dialog Box
Pair Block
![]() | Binary-Input RS Encoder | Binary Linear Encoder | ![]() |