This is machine translation

Translated by Microsoft
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. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Reorder symbols using random permutation


intrlvd = randintrlv(data,state)


intrlvd = randintrlv(data,state) rearranges the elements in data using a random permutation. The state parameter initializes the random number generator that the function uses to determine the permutation. state is either a scalar or a 35x1 vector, and is described in the rand function, which is used in randintrlv. The function is predictable and invertible for a given state, but different states produce different permutations. If data is a matrix with multiple rows and columns, the function processes the columns independently.

This function uses, by default, the Mersenne Twister algorithm by Nishimura and Matsumoto.


Using the state parameter causes this function to switch random generators to use the 'state' algorithm of therand function.

See rand for details on the generator algorithm.


For an example using random interleaving and deinterleaving, see Improve Error Rate Using Block Interleaving in MATLAB.

Introduced before R2006a