isundefined
Test which categorical entries are undefined.
Syntax
Section titled “Syntax”tf = isundefined(A)Description
Section titled “Description”Returns a logical array marking elements of A that are <undefined> — values that don’t reference any current category (typically because the category was removed).
Examples
Section titled “Examples”C = categorical({'a','b','c'});C = removecats(C, 'b');isundefined(C) % [0 1 0]See also
Section titled “See also”removecats— Remove categories from a categorical array.setcats— Replace the category set of a categorical array.