getlabels

(Not Recommended) Access nominal or ordinal array labels

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

Description

labels = getlabels(A) returns the labels of the levels in the nominal or ordinal array A as a cell array of character vectors, labels. If A is an ordinal array, getlabels returns the labels in the order of the levels.

Input Arguments

collapse all

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

Introduced in R2007a