Create ReedSolomon code from integer vector data
Communications Toolbox / Error Detection and Correction / Block
The IntegerInput RS Encoder block creates a ReedSolomon code.
The symbols for the code are integers between 0 and
2^{M}1, which represent elements of the finite field
GF(2^{M}). The default value of
M is the smallest integer that is greater than or equal to
log2(N+1), that is, ceil(log2(N+1))
. You can change the
default value of M by specifying the primitive polynomial for
GF(2^{M}), as described in Specify the Primitive Polynomial below. Restrictions on
M and N are described in Restrictions on M and the Codeword Length N.
The input and output are integervalued signals that represent messages and codewords, respectively. For more information, seeInput and Output Signal Length in RS Blocks.
An (N, K) ReedSolomon code can correct up to
floor((NK)/2)
symbol errors (not bit errors) in each codeword.
Suppose M = 3, N = 2^{3}1 = 7, and K = 5. Then a message is a
vector of length 5 whose entries are integers between 0 and 7. A corresponding codeword is a
vector of length 7 whose entries are integers between 0 and 7. The following figure illustrates
possible input and output signals to this block when Codeword length N is
set to 7
, Message length K is set to
5
, and the default primitive and generator polynomials are used.
Data Types 

Multidimensional Signals 

VariableSize Signals 

This object implements the algorithm, inputs, and outputs described in Algorithms for BCH and RS Errorsonly Decoding.