isundefined
Find undefined categorical elements.
📝Syntax
tf = isundefined(A)
📥Input Arguments
Parameter Description
A Input array.
📤Output Arguments
Parameter Description
tf Logical array with the same size as A.
📄Description

isundefined returns true for categorical elements that do not belong to any category.

For noncategorical input, the result is a logical array of false values with the same size as the input.

💡Examples
Locate undefined categorical values.
A = categorical({'red','','blue'}); tf = isundefined(A)
🔗See Also
categoricalcategoriessetcatscountcats
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub