comm.BCHDecoder
Decode data using BCH decoder
Description
The comm.BCHDecoder
System object™ recovers a binary message vector from a binary BCH codeword vector. For proper
decoding, the property values for this object must match the property values properties in the
corresponding comm.BCHEncoder
object. For more information, see
Algorithms.
To decode a binary message from a BCH codeword:
Create the
comm.BCHDecoder
object and set its properties.Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects?
Creation
Syntax
Description
creates a BCH decoder
System object, dec
= comm.BCHDecoderdec
, that applies BCH decoding.
sets dec
= comm.BCHDecoder(N
,K
)CodewordLength
to
N
and MessageLength
to
K
. For example, comm.BCHDecoder(7,3)
creates a
(7,3) BCH decoder object.
dec = comm.BCHDecoder(
additionally sets N
,K
,GP
)GeneratorPolynomial
to
GP
and GeneratorPolynomialSource
to 'Property'
.
dec = comm.BCHDecoder(
additionally sets N
,K
,GP
,S
)ShortMessageLength
to
S
and ShortMessageLengthSource
to 'Property'
.
dec = comm.BCHDecoder(___,
specifies options using one or more name-value arguments in addition to the input
arguments in previous syntaxes. For example,
Name
=Value
)comm.BCHDecoder(7,3,NumCorrectedErrorsOutputPort=0)
creates a (7,3)
BCH decoder object that does not output the number of corrected errors.
Properties
Usage
Description
decodes the
encoded input data using a (Y
= dec(X
)CodewordLength
,MessageLength
) BCH decoder with
the corresponding narrow-sense generator polynomial. This syntax applies when you set
NumCorrectedErrorsOutputPort
to false
. For information
about the input and output lengths when you run the object, see Input and Output Signal Lengths in BCH and RS System Objects.
[
decodes using inputs from either of the previous syntaxes, and returns the BCH-decoded
output vector Y
,err
] = dec(___)Y
and the
number of corrected symbols in output vector err
. A value of
-1
in the ith element of the error output vector
indicates that a decoding error occurred for that codeword. This syntax applies when you
set NumCorrectedErrorsOutputPort
to true
.
Input Arguments
Output Arguments
Object Functions
To use an object function, specify the
System object as the first input argument. For
example, to release system resources of a System object named obj
, use
this syntax:
release(obj)
Examples
Algorithms
References
[1] Clark, George C., and J. Bibb Cain. Error-Correction Coding for Digital Communications. Applications of Communications Theory. New York: Plenum Press, 1981.
[2] Wicker, Stephen B. Error Control Systems for Digital Communication and Storage. Upper Saddle River, NJ: Prentice Hall, 1995.
Extended Capabilities
Version History
Introduced in R2012a