Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

BCH decoder

`decoded = bchdec(code,N,K) `

`decoded = bchdec(code,N,K,paritypos)`

`[decoded,cnumerr] = bchdec(___)`

`[decoded,cnumerr,ccode] = bchdec(___)`

attempts to decode the received signal in `decoded`

= bchdec(`code`

,`N`

,`K`

) `code`

using an
(`N`

,`K`

) BCH decoder with the
narrow-sense generator polynomial. Parity symbols are at the end and the leftmost
symbol is the most significant symbol.

In the `decoded`

Galois array, each row represents the attempt
at decoding the corresponding row in `code`

.

`bchdec`

uses the Berlekamp-Massey decoding algorithm. For
information about this algorithm, see the works listed in References.

[1] Wicker, Stephen B. *Error Control Systems for Digital Communication
and Storage*. Upper Saddle River, NJ: Prentice Hall, 1995.

[2] Berlekamp, Elwyn R. *Algebraic Coding Theory*. New York:
McGraw-Hill, 1968.