R = permute(A, order)
| Parameter | Description |
|---|---|
| A | an array. |
| order | Dimension order: row vector |
| Parameter | Description |
|---|---|
| R | result array rearranged with new dimension order. |
permute rearranges the dimensions of an array according to the specified order.
x = [1 2 3; 4 5 6]
y = permute(x,[3 1 2])
| Version | Description |
|---|---|
| 1.0.0 | initial version |