removecats
Remove categories from categorical array
Description
B = removecats(
removes categories from a
categorical array. By default, A
)removecats
removes all unused
categories. The output categorical array B
has the same size and
values as the input A
. However, B
might have
fewer categories.
Examples
Input Arguments
Tips
~ismember(categories(A),unique(A))
returns logical1
(true
) for any unused category ofA
.
Extended Capabilities
Version History
Introduced in R2013b
See Also
categories
| summary
| addcats
| iscategory
| mergecats
| renamecats
| reordercats
| setcats