Communications Toolbox    
bchenco

BCH encoder

Syntax

Description

code = bchenco(msg,n,k) encodes msg using the BCH technique and the generator polynomial genpoly = bchpoly(n,k). n is the codeword length and k is the message length. msg is a binary matrix with k columns. Each row of msg represents a message. code is a binary matrix with n columns. Each row of code represents a codeword.

code = bchenco(msg,n,k,genpoly) is the same as the first syntax, except that genpoly is a row vector that gives the coefficients of the generator polynomial in order of ascending powers.

Examples

See the example on the reference page for the function bchdeco.

See Also
bchdeco, encode, decode, bchpoly, cyclgen


  bchdeco bchpoly