General Block Interleaver - Reorder symbols in input vector

Library

Block sublibrary of Interleaving

Description

The General Block Interleaver block rearranges the elements of its input vector without repeating or omitting any elements. The input can be real or complex. If the input contains N elements, then the Elements parameter is a vector of length N that indicates the indices, in order, of the input elements that form the length-N output vector; that is,

Output(k) = Input(Elements(k))

for each integer k between 1 and N. The contents of Elements must be integers between 1 and N, and must have no repetitions.

If the input is frame-based, then both it and the Elements parameter must be column vectors.

The block can accept the data types int8, uint8, int16, uint16, int32, uint32, boolean, single, double, and fixed-point. The data type of this output will be the same as that of the input signal.

Dialog Box

Elements

A vector of length N that lists the indices of the input elements that form the output vector.

Examples

If Elements is [4,1,3,2] and the input vector is [40;32;59;1], then the output vector is [1;40;59;32]. Notice that all of these vectors have the same length and that the vector Elements is a permutation of the vector [1:4].

Pair Block

General Block Deinterleaver

See Also

perms (MATLAB® function)

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS