This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Alternately select elements from two input vectors to generate output vector


Sequence Operations


The Interlacer block accepts two inputs that have the same vector size, complexity, and sample time. It produces one output vector by alternating elements from the first input (labeled O for odd) and from the second input (labeled E for even) . As a result, the output vector size is twice that of either input. The output vector has the same complexity and sample time of the inputs.

Both input ports accept scalars or column vectors with the same number of elements. The block accepts the data types int8, uint8, int16, uint16, int32, uint32, boolean, single, double, and fixed-point. The output signal inherits its data type from the input signal.

This block can be useful for combining in-phase and quadrature information from separate vectors into a single vector.


If the two input vectors have the values [1; 2; 3; 4] and [5; 6; 7; 8], then the output vector is [1; 5; 2; 6; 3; 7; 4; 8].

Pair Block


Extended Capabilities

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

Introduced before R2006a