Main Content


(Not Recommended) Access nominal or ordinal array levels

The nominal and ordinal array data types are not recommended. To represent ordered and unordered discrete, nonnumeric data, use the Categorical Arrays data type instead.


L = getlevels(A) returns the levels in the nominal or ordinal array A. L is a vector of the same type as A.

Input Arguments

collapse all

Nominal or ordinal array, specified as a nominal or ordinal array object created with nominal or ordinal.

Version History

Introduced in R2009a