Main Content

rsgenpolycoeffs

Generator polynomial coefficients of Reed-Solomon code

Description

x = rsgenpolycoeffs(N,K) returns the coefficients for the generator polynomial of an [N,K] Reed-Solomon code.

example

[x,t] = rsgenpolycoeffs(___) returns the error-correction capability of the code.

Examples

collapse all

Generate polynomial coefficients for a (15,11) Reed-Solomon code.

Generate the coefficients using rsgenpolycoeffs.

genpoly = rsgenpolycoeffs(15,11)
genpoly = 1×5 uint32 row vector

    1   13   12    8    7

Input Arguments

collapse all

Codeword length, specified as an integer of the form N = 2M – 1, where M is in the range [3,16].

Example: Set N to 15 for M=4.

Message length, specified as a positive integer.

Output Arguments

collapse all

Generator polynomial coefficients, returned as a Galois field array or double-precision array. The output is identical to the output of rsgenpoly.

Error-correction capability of the code, returned as a positive integer.

Extended Capabilities

expand all

Version History

Introduced in R2010b

See Also

| | |