ipermute

Inverse permute array dimensions.

Syntax

  • R = ipermute(A, order)

Input argument

  • A - an array.

  • order - Dimension order: row vector

Output argument

  • R - result array rearranged with new dimension order.

Description

ipermute permutes the dimensions of an array (in inverse order of permute).

Example

x = [1 2 3; 4 5 6]
y = permute(x,[3 1 2])
x2 = ipermute(y,[3 1 2])

See also

permute, reshape, transpose.

History

VersionDescription

1.0.0

initial version

Author

Allan CORNET

Last updated