permute
Permute array dimensions.
📝Syntax
R = permute(A, order)
📥Input Arguments
Parameter Description
A an array.
order Dimension order: row vector
📤Output Arguments
Parameter Description
R result array rearranged with new dimension order.
📄Description

permute rearranges the dimensions of an array according to the specified order.

💡Examples
x = [1 2 3; 4 5 6]
y = permute(x,[3 1 2])
🔗See Also
ipermutereshapetranspose
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub