Documentation Center

  • Trial Software
  • Product Updates


Class: categorical

Rotate categorical matrix 90 degrees

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 = rot90(A)
B = rot90(A,k)


B = rot90(A) returns the 90 degree counterclockwise rotation of the 2-D categorical matrix A.

B = rot90(A,k) returns the k*90 degree rotation of A, k = +-1,+-2,....

See Also

| |

Was this topic helpful?