B = permute(A,dimorder)
rearranges the dimensions of an array in the order specified by the vector
dimorder. For example, permute(A,[2 1]) switches the
row and column dimensions of a matrix A.
Noninteger or complex dimension order arguments produce error
Behavior changed in R2019b
Starting in R2019b, the syntax permute(A,dimorder) produces an error
when dimorder is a noninteger or complex value. Instead, specify real,
positive integer values for dimorder.
Extended Capabilities
Tall Arrays Calculate with arrays that have more rows than fit in memory.
This function supports tall arrays with the limitation:
Permuting the tall dimension (dimension one) is not supported.