Documentation

Contents

comm.BlockInterleaver System object

Package: comm

Permute input symbols using permutation vector

Description

The BlockInterleaver object permutes the symbols in the input signal. Internally, it uses a set of shift registers, each with its own delay value. This object processes variable-size signals.

To interleave the input signal:

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

  2. Call step to reorder the input symbols according to the properties of comm.BlockInterleaver. The behavior of step is specific to each object in the toolbox.

Construction

H = comm.BlockInterleaver creates a block interleaver System object™, H This object permutes the symbols in the input signal based on a permutation vector.

H = comm.BlockInterleaver(Name,Value) creates object, H, with 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 symbols as an integer column vector. The default is [5;4;3;2;1]. The number of elements of the permutation vector property must equal the length of the input vector. The PermutationVector property indicates the indices, in order, of the input elements that form the output vector. The relationship Output(k)=Input(PermutationVector(k)) describes this order. Each integer, k, must be between 1 and N, where N is the number of elements in the permutation vector. The elements in the PermutationVector property must be integers between 1 and N with no repetitions. The PermutationVector property is available only when the PermutationVectorSource property is set to Property.

Methods

cloneCreate block interleaver 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
stepPermute input symbols using a 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 Interleaver block reference page. The object properties correspond to the block parameters.

Was this topic helpful?