Documentation Center

  • Trial Software
  • Product Updates


Class: categorical

Permute dimensions of categorical array

The nominal and ordinal array data types might be removed in a future release. To represent ordered and unordered discrete, nonnumeric data, use the MATLAB® categorical data type instead.


B = permute(A,order)


B = permute(A,order) rearranges the dimensions of the categorical array A so that they are in the order specified by the vector order. The array produced has the same values as A but the order of the subscripts needed to access any particular element are rearranged as specified by order. The elements of order must be a rearrangement of the numbers from 1 to n.

See Also


Was this topic helpful?