MATLAB Function Reference Previous page   Next Page
ipermute

Inverse permute the dimensions of a multidimensional array

Syntax

Description

A = ipermute(B,order) is the inverse of permute. ipermute rearranges the dimensions of B so that permute(A,order) will produce B. B has the same values as A but the order of the subscripts needed to access any particular element are rearranged as specified by order. All the elements of order must be unique.

Remarks

permute and ipermute are a generalization of transpose (.') for multidimensional arrays.

Examples

Consider the 2-by-2-by-3 array a:

Permuting and inverse permuting a in the same fashion restores the array to its original form:

See Also

permute


Previous page  invhilb is* Next page

© 1994-2005 The MathWorks, Inc.