comm.BCHEncoder
Encode data using BCH encoder
Description
The comm.BCHEncoder
System object™ creates a BCH code with message and codeword lengths that you specify. For more
information, see Algorithms.
To encode data using a BCH-coding scheme:
Create the
comm.BCHEncoder
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 encoder
System object, enc
= comm.BCHEncoderenc
, that applies BCH encoding.
sets enc
= comm.BCHEncoder(N
,K
)CodewordLength
to
N
and MessageLength
to
K
. For example, comm.BCHEncoder(7,3)
creates a
(7,3) BCH encoder object.
additionally sets enc
= comm.BCHEncoder(N
,K
,GP
)GeneratorPolynomial
to
GP
and GeneratorPolynomialSource
to 'Property'
.
additionally sets enc
= comm.BCHEncoder(N
,K
,GP
,S
)ShortMessageLength
to
S
and ShortMessageLengthSource
to 'Property'
.
specifies options using one or more name-value arguments in addition to the input
arguments in previous syntaxes. For example,
enc
= comm.BCHEncoder(___,Name
=Value
)comm.BCHEncoder(7,3,PuncturePatternSource="Property",PuncturePattern=[ones(7,1);
zeros(3,1)])
creates a (7, 3) BCH encoder object with the puncture pattern set
to [1;1;1;1;1;1;1;0;0;0]
.
Properties
Usage
Syntax
Description
encodes the
input message using a (Y
= enc(X
)CodewordLength
,MessageLength
) BCH encoder with
the corresponding narrow-sense generator polynomial. 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.
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