comm.MatrixHelicalScanDeinterleaver

(To be removed) Deinterleave input symbols by filling a matrix along diagonals

Compatibility

comm.MatrixHelicalScanDeinterleaver will be removed in a future release. Use helscandeintrlv instead. For more information, see Compatibility Considerations.

Description

The MatrixHelicalScanDeinterleaver object performs block deinterleaving by filling a matrix with the input symbols helically and then outputs the matrix contents row by row. The number of rows and number of columns properties represent the dimensions of the matrix that the object uses internally for computations.

To deinterleave the input symbols by filling a matrix with the input symbols helically and then outputting the matrix contents row-by-row:

  1. Define and set up your matrix helical scan deinterleaver object. See Construction.

  2. Call step to deinterleave the input signal according to the properties of comm.MatrixHelicalScanDeinterleaver. The behavior of step is specific to each object in the toolbox.

Note

Starting in R2016b, instead of using the step method to perform the operation defined by the System object™, you can call the object with arguments, as if it were a function. For example, y = step(obj,x) and y = obj(x) perform equivalent operations.

Construction

H = comm.MatrixHelicalScanDeinterleaver creates a matrix helical scan deinterleaver object, H. This object restores the original ordering of a sequence that was interleaved using the matrix helical scan interleaver System object.

H = comm.MatrixHelicalScanDeinterleaver(Name,Value) creates a matrix helical scan deinterleaver object, H, with each specified property set to the specified value. You can specify additional name-value pair arguments in any order as (Name1,Value1,...,NameN,ValueN).

Properties

NumRows

Number of rows of permutation matrix

Specify the number of rows in the permutation matrix as a scalar, positive integer. The default is 64.

NumColumns

Number of columns of permutation matrix

Specify the number of columns in the permutation matrix as a scalar, positive integer. The default is 64.

StepSize

Slope of diagonals

Specify slope as a scalar integer between 0 and the value you specify in the NumRows property. The default is 1. The slope value indicates the amount by which the row index increases as the column index increases by 1. When you set the value of this property to 0, the object does not interleave and the output matches the input.

Methods

step(To be removed) Deinterleave input symbols by filling a matrix along diagonals
Common to All System Objects
release

Allow System object property value changes

Examples

collapse all

Create matrix helical scan interleaver and deinterleaver objects.

interleaver = comm.MatrixHelicalScanInterleaver('NumRows',4,'NumColumns', 4);
Warning: COMM.MATRIXHELICALSCANINTERLEAVER will be removed in a future release. Use HELSCANINTRLV instead. See <a href="matlab:helpview(fullfile(docroot, 'toolbox', 'comm', 'comm.map'), 'REMOVE_MatrixHelicalScanInterleaverSO')">R2019b Communications Toolbox Release Notes</a> for more information.
deinterleaver = comm.MatrixHelicalScanDeinterleaver('NumRows',4,'NumColumns',4);
Warning: COMM.MATRIXHELICALSCANDEINTERLEAVER will be removed in a future release. Use HELSCANDEINTRLV instead. See <a href="matlab:helpview(fullfile(docroot, 'toolbox', 'comm', 'comm.map'), 'REMOVE_MatrixHelicalScanDeinterleaverSO')">R2019b Communications Toolbox Release Notes</a> for more information.

Generate random symbols. Pass the data through the interleaver, and then pass that data through the deinterleaver.

data = randi(7,16,1);
intData = interleaver(data);
deIntData = deinterleaver(intData);

Display the original sequence, interleaved sequence and restored sequence.

[data intData deIntData]
ans = 16×3

     6     6     6
     7     1     7
     1     2     1
     7     1     7
     5     5     5
     1     7     1
     2     6     2
     4     7     4
     7     7     7
     7     4     7
      ⋮

Confirm that the original and deinterleaved sequences are identical.

isequal(data,deIntData)
ans = logical
   1

Algorithms

This object implements the algorithm, inputs, and outputs described on the Matrix Helical Scan Deinterleaver block reference page. The object properties correspond to the block parameters.

Compatibility Considerations

expand all

Not recommended starting in R2019b

Extended Capabilities

Introduced in R2012a