comm.BlockDeinterleaver

(To be removed) Deinterleave input symbols using permutation vector

Compatibility

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

Description

The BlockDeinterleaver object, which can process variable-sized signals, rearranges the elements of its input vector without repeating or omitting any elements. The input can be real or complex.

To deinterleave the input vector:

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

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

H = comm.BlockDeinterleaver(Name,Value) creates object, H, with the specified property set to the specified value.

Properties

PermutationVectorSource

Permutation vector source

Specify the source of the permutation vector as either Property or Input port. The default value is Property.

PermutationVector

Permutation vector

Specify the mapping used to permute the input symbol as a column vector of integers. The default is [5;4;3;2;1]. The mapping is a column vector of integers where the number of elements is equal to the length, N, of the input to the step method. Each element must be an integer, between 1 and N, with no repeated values. The PermutationVector property is available only when the PermutationVectorSource property is set to Property.

Methods

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

Allow System object property value changes

Examples

expand all

Create interleaver and deinterleaver objects.

interleaver = comm.BlockInterleaver([3 4 1 2]');
Warning: COMM.BLOCKINTERLEAVER will be removed in a future release. Use INTRLV instead. See <a href="matlab:helpview(fullfile(docroot, 'toolbox', 'comm', 'comm.map'), 'REMOVE_BlockInterleaverSO')">R2019b Communications Toolbox Release Notes</a> for more information.
deinterleaver = comm.BlockDeinterleaver([3 4 1 2]');
Warning: COMM.BLOCKDEINTERLEAVER will be removed in a future release. Use DEINTRLV instead. See <a href="matlab:helpview(fullfile(docroot, 'toolbox', 'comm', 'comm.map'), 'REMOVE_BlockDeinterleaverSO')">R2019b Communications Toolbox Release Notes</a> for more information.

Pass random data through the interleaver and deinterleaver.

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

Display the original sequence, interleaved sequence, and restored sequence.

[data, intData, deIntData]
ans = 4×3

     6     1     6
     7     7     7
     1     6     1
     7     7     7

Confirm the original and deinterleaved data are identical.

isequal(data,deIntData)
ans = logical
   1

Generate a random vector of unique integers as a permutation vector.

permVec = randperm(7)';

Specify permVec as the permutation vector for the interleaver and deinterleaver objects.

interleaver = comm.BlockInterleaver(permVec);
Warning: COMM.BLOCKINTERLEAVER will be removed in a future release. Use INTRLV instead. See <a href="matlab:helpview(fullfile(docroot, 'toolbox', 'comm', 'comm.map'), 'REMOVE_BlockInterleaverSO')">R2019b Communications Toolbox Release Notes</a> for more information.
deinterleaver = comm.BlockDeinterleaver(permVec);
Warning: COMM.BLOCKDEINTERLEAVER will be removed in a future release. Use DEINTRLV instead. See <a href="matlab:helpview(fullfile(docroot, 'toolbox', 'comm', 'comm.map'), 'REMOVE_BlockDeinterleaverSO')">R2019b Communications Toolbox Release Notes</a> for more information.

Pass random data through the interleaver and deinterleaver.

data = randi(10,7,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 General Block 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