Getting Started | ![]() ![]() |
Building the Cyclic Code Model
You can build the cyclic code model by adding blocks to the model shown in the figure BPSK Modulation Model. To do so, follow these steps:
bpskdoc
at the MATLAB prompt to open the BPSK model. Then save the model as my_cyclic
in the directory where you keep your work files.
Binary Cyclic Encoder and Decoder
The Binary Cyclic Encoder block implements a binary cyclic code. The block has the following parameter settings:
This example uses a rate 4 / 7 code. The codeword length N must have the form 2M - 1, where M is an integer greater than or equal to 3. The input to the block must have the same size as the setting for Message length.
The Binary Cyclic Decoder block decodes the signal after it passes through the channel. The block should have the same parameter settings as the Binary Cyclic Encoder block.
![]() | Reducing the Error Rate with a Cyclic Code | Setting Parameters in the Cyclic Code Model | ![]() |