Communications Blockset    
BCH Encoder

Create a BCH code from binary vector data

Library

Block sublibrary of Channel Coding

Description

The BCH Encoder block creates a BCH code with message length K and codeword length N. You specify both N and K directly in the block mask.

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.

N must have the form 2M-1, where M is an integer greater than or equal to 3. For a given codeword length N, only specific message lengths K are valid for a BCH code. To see which values of K are valid, use the bchpoly function in the Communications Toolbox. For example, in the output below, the second column lists all possible message lengths that correspond to a codeword length of 15. The third column lists the corresponding error-correction capabilities.

No known analytic formula describes the relationship among the codeword length, message length, and error-correction capability.

Dialog Box

Codeword length N
The codeword length, which is also the output vector length.
Message length K
The message length, which is also the input vector length.

Pair Block

BCH Decoder

See Also

bchpoly (Communications Toolbox)


  BCH Decoder Bernoulli Binary Generator