| Communications Blockset | ![]() |
www.kxcad.net Home > CAE Software Index > MATLAB Index >
Distribute elements of input vector alternately between two output vectors
Sequence Operations
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. The block can accept the data types int8, uint8, int16, uint16, int32, uint32, boolean, single, double, and fixed-point. The data types of this output will be the same as that of the input signal.
This block can be useful for separating in-phase and quadrature information from a single vector into separate vectors.

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].
Demux (Simulink)
| DBPSK Modulator Baseband | Derepeat | ![]() |
© 1984-2007 The MathWorks, Inc. Terms of Use Patents Trademarks Acknowledgments