Documentation Center

  • Trial Software
  • Product Updates

getlevels

Class: categorical

Get categorical array levels

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.

Syntax

S = getlevels(A)

Description

S = getlevels(A) returns the levels for the categorical array A. S is a vector with the same type as A.

See Also

Was this topic helpful?