# Documentation

### This is machine translation

Translated by
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.

# comm.MatrixInterleaver System object

Permute input symbols using permutation matrix

## Description

The MatrixInterleaver object performs block interleaving by filling a matrix with the input symbols row by row and then outputs the matrix contents column-by-column.

To perform block interleaving using a permutation matrix:

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

2. Call step to interleave the input symbols according to the properties of comm.MatrixInterleaver. 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.MatrixInterleaver creates a matrix interleaver System object, H. This object permutes the input by filling a permutation matrix with the input symbols row by row. The object then outputs the matrix contents column by column.

H = comm.MatrixInterleaver(Name,Value) creates a matrix interleaver 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.MatrixInterleaver(N,M) creates a matrix interleaver 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 Permute input symbols using permutation matrix
Common to All System Objects
clone

Create System object with same property values

getNumInputs

Expected number of inputs to a System object

getNumOutputs

Expected number of outputs of a System object

isLocked

Check locked states of a System object (logical)

release

Allow System object property value changes

## Examples

expand all

Create matrix interleaver and deinterleaver objects.

interleaver = comm.MatrixInterleaver('NumRows',2,'NumColumns', 5);
deinterleaver = comm.MatrixDeinterleaver('NumRows',2,'NumColumns', 5);

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.

## See Also

#### Introduced in R2012a

Was this topic helpful?

Download ebook