B = permute(A,dimorder)rearranges the dimensions of an array in the order specified by the vectordimorder. For example,permute(A,[2 1])switches the row and column dimensions of a matrixA.
Noninteger or complex dimension order arguments produce error
Behavior changed in R2019b
Starting in R2019b, the syntaxpermute(A,dimorder)produces an error whendimorderis a noninteger or complex value. Instead, specify real, positive integer values fordimorder.
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.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.