Documentation Center

  • Trial Software
  • Product Updates

Contents

comm.BlockDeinterleaver System object

Package: comm

Deinterleave input symbols using permutation vector

Description

The BlockDeinterleaver object 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.

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

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.

Methods

cloneCreate block deinterleaver object with same property values
getNumInputsNumber of expected inputs to step method
getNumOutputsNumber of outputs from step method
isLockedLocked status for input attributes and nontunable properties
releaseAllow property value and input characteristics changes
stepDeinterleave input symbols using permutation vector

Examples

Interleave and deinterleave data.

    hInt = comm.BlockInterleaver([3 4 1 2]');
    hDeInt = comm.BlockDeinterleaver([3 4 1 2]');
    data = randi(7, 4, 1);
    intData = step(hInt, data);
    deIntData = step(hDeInt, intData);

    % compare the original sequence, interleaved sequence, and restored sequence
    [data, intData, deIntData]

Interleave and deinterleave data with random interleaver.

 permVec = randperm(7)';  % Random permutation vector
    hInt = comm.BlockInterleaver(permVec);
    hDeInt = comm.BlockDeinterleaver(permVec);
    data = randi(9, 7, 1);
    intData = step(hInt, data);
    deIntData = step(hDeInt, intData);
    % compare the original sequence, interleaved sequence, and restored
    % sequence
    [data, intData, deIntData]

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.

See Also

|

Was this topic helpful?