Encode binary low-density parity-check (LDPC) code
The comm.LDPCEncoder
System object™ applies LDPC coding to a binary input message. LDPC codes are linear error
control codes with sparse parity-check matrices and long block lengths that can attain
performance near the Shannon limit.
To encode a binary LDPC code:
Create the comm.LDPCEncoder
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?.
creates a
binary LDPC encoder System object. This object performs LDPC encoding based on the default parity-check
matrix.ldpcencoder
= comm.LDPCEncoder
sets the ldpcencoder
= comm.LDPCEncoder(parity
)ParityCheckMatrix
property to parity
and
creates an LDPC encoder System object. The parity
input must be specified as described by the
ParityCheckMatrix
property.
sets properties using one or more name-value pairs, in addition to inputs from any of the
prior syntaxes. For example,
ldpcencoder
= comm.LDPCEncoder(___,Name
,Value
)comm.LDPCEncoder('ParityCheckMatrix',sparse(I(:,1),I(:,2),1))
configures an LDPC encoder System object to encode data using the parity matrix
sparse(I(:,1),I(:,2),1)
. Enclose each property name in quotes.
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)