| Communications Blockset™ | ![]() |
Decode linear block code to recover binary vector data
Block sublibrary of Channel Coding
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.
This block supports double and boolean data types.

Generator matrix for the code; same as in Binary Linear Encoder block.
Either a 2N-K-by-N matrix that lists correction vectors for each codeword's syndrome; or the scalar 0, in which case the block defaults to the table corresponding to the Generator matrix parameter.
![]() | Binary-Input RS Encoder | Binary Linear Encoder | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |