Communications Blockset | ![]() ![]() |
Permute input symbols by selecting matrix elements along diagonals
Library
Block sublibrary of Interleaving
Description
The Matrix Helical Scan Interleaver block performs block interleaving by filling a matrix with the input symbols row by row and then sending the matrix contents to the output port in a helical fashion. The Number of rows and Number of columns parameters are the dimensions of the matrix that the block uses internally for its computations.
Helical fashion means that the block selects output symbols by selecting elements along diagonals of the matrix. The number of elements in each diagonal matches the Number of columns parameter, after the block wraps past the edges of the matrix when necessary. The block traverses diagonals so that the row index and column index both increase. Each diagonal after the first one begins one row below the first element of the previous diagonal.
The Array step size parameter is the slope of each diagonal, that is, the amount by which the row index increases as the column index increases by one. This parameter must be an integer between zero and the Number of rows parameter. If the Array step size parameter is zero, then the block does not interleave and the output is the same as the input.
The number of elements of the input vector must be the product of Number of rows and Number of columns. If the input is frame-based, then it must be a column vector.
Dialog Box
Examples
If the Number of rows and Number of columns parameters are 6 and 4, respectively, then the interleaver uses a 6-by-4 matrix for its internal computations. If the Array step size parameter is 1, then the diagonals are as shown in the figure below. Positions with the same color form part of the same diagonal, and diagonals with darker colors precede those with lighter colors in the output signal.
Given an input signal of [1:24]'
, the block produces an output of
Pair Block
Matrix Helical Scan Deinterleaver
See Also
![]() | Matrix Helical Scan Deinterleaver | Matrix Interleaver | ![]() |