iscategory
Test whether names are categories of a categorical array.
Syntax
Section titled “Syntax”tf = iscategory(A, catnames)Description
Section titled “Description”Returns a logical vector — for each name in catnames, true if it’s a defined category of A.
Examples
Section titled “Examples”C = categorical({'a','b'});iscategory(C, {'a', 'c'}) % [1 0]See also
Section titled “See also”categorical— Create a categorical array from data.categories— List of category names in a categorical array.