Main Content

Binary Linear Encoder

Create linear block code from binary vector data

Library

Block sublibrary of Error Detection and Correction

  • Binary Linear Encoder block

Description

The Binary Linear Encoder block creates a binary linear block code using a generator matrix that you specify. If K is the message length of the code, then the Generator matrix parameter must have K rows. If N is the codeword length of the code, then Generator matrix must have N columns.

This block accepts a column vector input signal containing K elements. This block outputs a column vector with a length of N elements. For information about the data types each block port supports, see Supported Data Type.

Parameters

Generator matrix

A K-by-N matrix, where K is the message length and N is the codeword length.

Supported Data Type

PortSupported Data Types
In
  • Double-precision floating point

  • Single-precision floating point

  • Boolean

  • 8-, 16-, and 32-bit signed integers

  • 8-, 16-, and 32-bit unsigned integers

  • Fixed-point

Out
  • Double-precision floating point

  • Single-precision floating point

  • Boolean

  • 8-, 16-, and 32-bit signed integers

  • 8-, 16-, and 32-bit unsigned integers

  • Fixed-point

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced before R2006a