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. In general, the ith dimension of the output array is the dimensiondimorder(i)from the input array.
R2019b: 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.
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.