Communications Blockset | ![]() ![]() |
Create a Hamming code from binary vector data
Library
Block sublibrary of Channel Coding
Description
The Hamming Encoder block creates a Hamming code with message length K and codeword length N. The number N must have the form 2M-1, where M is an integer greater than or equal to 3. Then K equals N-M.
The input must contain exactly K elements. If it is frame-based, then it must be a column vector. The output is a vector of length N.
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:
gfprimdf
(M)
as the primitive polynomial for GF(2M).
gfprimfd
function in the Communications Toolbox.
Dialog Box
Pair Block
See Also
hammgen
(Communications Toolbox)
![]() | Hamming Decoder | Helical Deinterleaver | ![]() |