Skip to content

isundefined

Test which categorical entries are undefined.

tf = isundefined(A)

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).

C = categorical({'a','b','c'});
C = removecats(C, 'b');
isundefined(C) % [0 1 0]
  • removecats — Remove categories from a categorical array.
  • setcats — Replace the category set of a categorical array.