(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
data type instead.
returns the labels of the levels in the nominal or ordinal array
labels
= getlabels(A
)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.