Products & Services Solutions Academia Support User Community Company

Learn more about Communications Blockset   

Hamming Decoder - Decode Hamming code to recover binary vector data

Library

Block sublibrary of Channel Coding

Description

The Hamming Decoder block recovers a binary message vector from a binary Hamming codeword vector. For proper decoding, the parameter values in this block should match those in the corresponding Hamming Encoder block.

If the Hamming code has message length K and codeword length N, then N must have the form 2M-1 for some integer M greater than or equal to 3. Also, K must equal N-M.

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 coding scheme uses elements of the finite field GF(2M). You can either specify the primitive polynomial that the algorithm should use, or you can rely on the default setting:

This block supports double and boolean data types.

Dialog Box

Codeword length N

The codeword length N, which is also the input vector length.

Message length K, or M-degree primitive polynomial

Either the message length, which is also the output vector length; or a binary vector that represents a primitive polynomial for GF(2M).

Pair Block

Hamming Encoder

See Also

hammgen (Communications Toolbox)

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS