categories
List of category names in a categorical array.
Syntax
Section titled “Syntax”C = categories(A)Description
Section titled “Description”Returns a cell array of strings naming every category present in the categorical array A, in their canonical order.
Example
Section titled “Example”categories(categorical({'a','b','a'})) % {'a'; 'b'}See also
Section titled “See also”categorical— Create a categorical array from data.iscategory— Test whether names are categories of a categorical array.