addcats
Add categories to categorical array
Syntax
Description
B = addcats(
adds categories to a categorical array. By default, A
,newcats
)addcats
adds the new categories to the end of the set of categories, as shown by the output
of categories(A)
. It does not add new elements. The output
categorical array B
does not contain elements that belong to any
of the new categories until you assign such elements to B
.
If A
is an ordinal categorical array, you must specify the
Before
or After
name-value
argument.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced in R2013b
See Also
categories
| removecats
| iscategory
| mergecats
| renamecats
| reordercats
| setcats