Communications Blockset | ![]() ![]() |
Distribute elements of input vector alternately between two output vectors
Library
Sequence Operations, in Basic Comm Functions
Description
The Deinterlacer block accepts an input vector that has an even number of elements. The block alternately places the elements in each of two output vectors. As a result, each output vector size is half the input vector size. The output vectors have the same complexity and sample time of the input.
The input can be either a sample-based vector of length two, or a frame-based column vector whose length is any even integer.
This block can be useful for separating in-phase and quadrature information from a single vector into separate vectors.
Dialog Box
Examples
If the input vector is frame-based with value [1; 5; 2; 6; 3; 7; 4; 8], then the two output vectors are [1; 2; 3; 4] and [5; 6; 7; 8]. Notice that this is the inverse of the example on the reference page for the Interlacer block.
If the input vector is frame-based with value [1; 2; 3; 4; 5; 6], then the two output vectors are [1; 3; 5] and [2; 4; 6].
Pair Block
See Also
Demux (Simulink)
![]() | DBPSK Modulator Baseband | Derepeat | ![]() |