Interlacer

Alternately select elements from two input vectors to generate output vector

  • Library:
  • Communications Toolbox / Sequence Operations

Description

The Interlacer block accepts two vector with the size, complexity, and sample time. It produces one output vector by alternating elements from the first input (labeled O for odd) and the second input (labeled E for even) .

Ports

Input

expand all

Odd-numbered elements, specified as a vector. The complexity of inputs O and E must match.

Data Types: double
Complex Number Support: Yes

Even-numbered elements, specified as a vector. The complexity of inputs O and E must match.

Data Types: double
Complex Number Support: Yes

Output

expand all

Output signal, returned as an even length column vector. Odd numbered elements in the output vector contain the elements from input O and even numbered elements in the output vector contain the elements from input E. The output vector has the same data type and sample time as the input.

Block Characteristics

Data Types

Boolean | double | enumerated | fixed point | integer | single

Multidimensional Signals

no

Variable-Size Signals

no

Extended Capabilities

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

Introduced before R2006a