comm.MatrixDeinterleaver

(To be removed) Deinterleave input symbols using permutation matrix

Compatibility

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

Description

The MatrixDeinterleaver object performs block deinterleaving by filling a matrix with the input symbols column by column and then sending the matrix contents to the output port row by row. The number of rows and number of columns properties set the dimensions of the matrix that the object uses internally for computations.

To deinterleave input symbols using a permutation vector:

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

  2. Call step to deinterleave the input signal according to the properties of comm.MatrixDeinterleaver. 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.MatrixDeinterleaver creates a matrix deinterleaver System object, H. This object restores the original ordering of a sequence that was interleaved using the matrix interleaver object.

H = comm.MatrixDeinterleaver(Name,Value) creates a matrix 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).

H = comm.MatrixDeinterleaver(N,M) creates a matrix deinterleaver object, H. This object has the NumRows property set to N, the NumColumns property set to M.

Properties

NumRows

Number of rows of permutation matrix

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

NumColumns

Number of columns of permutation matrix

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

Methods

step(To be removed) Deinterleave input symbols using permutation matrix
Common to All System Objects
release

Allow System object property value changes

Examples

collapse all

Create matrix interleaver and deinterleaver objects.

interleaver = comm.MatrixInterleaver('NumRows',2,'NumColumns', 5);
Warning: COMM.MATRIXINTERLEAVER will be removed in a future release. Use MATINTRLV instead. See <a href="matlab:helpview(fullfile(docroot, 'toolbox', 'comm', 'comm.map'), 'REMOVE_MatrixInterleaverSO')">R2019b Communications Toolbox Release Notes</a> for more information.
deinterleaver = comm.MatrixDeinterleaver('NumRows',2,'NumColumns', 5);
Warning: COMM.MATRIXDEINTERLEAVER will be removed in a future release. Use MATDEINTRLV instead. See <a href="matlab:helpview(fullfile(docroot, 'toolbox', 'comm', 'comm.map'), 'REMOVE_MatrixDeinterleaverSO')">R2019b Communications Toolbox Release Notes</a> for more information.

Generate random data, interleave, and then deinterleave the data.

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

Confirm the original and deinterleaved data are identical.

isequal(data,deIntData)
ans = logical
   1

Algorithms

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

Compatibility Considerations

expand all

Not recommended starting in R2019b

Extended Capabilities

See Also

Functions

Introduced in R2012a