Documentation Center

  • Trial Software
  • Product Updates

bchnumerr

Number of correctable errors for BCH code

Syntax

Description

example

T = bchnumerr(N) returns all the possible combinations of message length, K, and number of correctable errors, T, for a BCH code of codeword length, N.

example

T = bchnumerr(N, K) returns the number of correctable errors, T, for an (N, K) BCH code.

Examples

expand all

Determine message length combinations for BCH code

Calculate the possible message length combinations for a BCH code word length of 15.

T = bchnumerr(15)
T =
    15    11     1
    15     7     2
    15     5     3

Compute the correctable errors for BCH Code

Calculate the number of correctable errors for BCH code 15,11

T = bchnumerr(15,11)
T =
    1

Input Arguments

expand all

N — Codeword length (default) | integer scalar

Codeword length, specified as an integer scalar. N must have the form 2m-1 for some integer, m, between 3 and 16.

Example: 15

Data Types: single | double

K — Message lengthinteger scalar

Message length, specified as an integer scalar. N and K must produce a narrow-sense BCH code.

Example: 11

Data Types: single | double

Output Arguments

expand all

T — Number of correctable errorsscalar or matrix

Number of correctable errors, returned as a scalar or matrix value.

bchnumerr(N) returns a matrix with three columns. The first column lists N, the second column lists K, and the third column lists T.

bchnumerr(N, K) returns a scalar, which represents the number of correctable errors for the BCH code.

See Also

|

Was this topic helpful?