Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

Block Coding

Linear block codes, BCH, Reed-Solomon, LDPC

Communications System Toolbox™ provides tools for block encoding and decoding of data using either MATLAB® or Simulink®. To learn more about error control coding, see Error Detection and Correction.

System Objects

comm.BCHDecoder Decode data using BCH decoder
comm.BCHEncoder Encode data using BCH encoder
comm.RSDecoder Decode data using Reed-Solomon decoder
comm.RSEncoder Encode data using Reed-Solomon encoder
comm.HDLRSDecoder Decode data using a Reed-Solomon decoder
comm.HDLRSEncoder Encode data using a Reed-Solomon encoder
comm.LDPCDecoder Decode binary low-density parity-check code
comm.gpu.LDPCDecoder Decode binary low-density parity-check data with GPU
comm.LDPCEncoder Encode binary low-density parity-check code

Blocks

Binary Cyclic Decoder Decode systematic cyclic code to recover binary vector data
Binary Cyclic Encoder Create systematic cyclic code from binary vector data
Binary Linear Decoder Decode linear block code to recover binary vector data
Binary Linear Encoder Create linear block code from binary vector data
Hamming Decoder Decode Hamming code to recover binary vector data
Hamming Encoder Create Hamming code from binary vector data
BCH Decoder Decode BCH code to recover binary vector data
BCH Encoder Create BCH code from binary vector data
Binary-Input RS Encoder Create Reed-Solomon code from binary vector data
Binary-Output RS Decoder Decode Reed-Solomon code to recover binary vector data
Integer-Input RS Encoder Create Reed-Solomon code from integer vector data
Integer-Input RS Encoder HDL Optimized Encode data using a Reed-Solomon encoder
Integer-Output RS Decoder Decode Reed-Solomon code to recover integer vector data
Integer-Output RS Decoder HDL Optimized Decode data using a Reed-Solomon decoder
LDPC Decoder Decode binary low-density parity-check code specified by parity-check matrix
LDPC Encoder Encode binary low-density parity-check code specified by parity-check matrix

Functions

cyclgen Produce parity-check and generator matrices for cyclic code
cyclpoly Produce generator polynomials for cyclic code
decode Block decoder
encode Block encoder
gfweight Calculate minimum distance of linear block code
gen2par Convert between parity-check and generator matrices
hammgen Produce parity-check and generator matrices for Hamming code
syndtable Produce syndrome decoding table
bchdec BCH decoder
bchenc BCH encoder
bchgenpoly Generator polynomial of BCH code
bchnumerr Number of correctable errors for BCH code
rsdec Reed-Solomon decoder
rsenc Reed-Solomon encoder
rsgenpoly Generator polynomial of Reed-Solomon code
rsgenpolycoeffs Generator polynomial coefficients of Reed-Solomon code
dvbs2ldpc Low-density parity-check codes from DVB-S.2 standard

Topics

Reed-Solomon Coding Part I – Erasures

This example shows how to configure the RSEncoder and RSDecoder System objects to perform Reed-Solomon (RS) block coding with erasures when simulating a communications system.

Reed-Solomon Coding Part II – Punctures

This example shows how to set up the Reed-Solomon (RS) encoder/decoder to use punctured codes.

Reed-Solomon Coding Part III – Shortening

This example shows how to set up the Reed-Solomon (RS) encoder/decoder to shorten the (63,53) code to a (28,18) code.

DVB-S.2 Link, Including LDPC Coding

This example shows the application of low density parity check (LDPC) codes in the second generation Digital Video Broadcasting standard (DVB-S.2), which is deployed by DIRECTV in the United States.

DVB-S.2 System Simulation Using a GPU-Based LDPC Decoder System Object

This example shows how to use a GPU-based LDPC Decoder System object to increase the speed of a communications system simulation.

Featured Examples

Was this topic helpful?