MATLAB Function Reference
  Go to function:
    Search    Help Desk 
ipermute    Examples   See Also

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     Rearrange the dimensions of a multidimensional array



[ Previous | Help Desk | Next ]