Main Content

getlevels

(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.

Description

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.

Introduced in R2009a