<< numel Elementary functions pinv >>

permute


Permute array dimensions.


Syntax


R = permute(A, order)

Input argument


A

an array.

order

Dimension order: row vector

Output argument


R

result array rearranged with new dimension order.

Description


permute permutes the dimensions of an array.

Example


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

See also


ipermute, reshape, transpose.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< numel Elementary functions pinv >>