addcats
Add categories to categorical array
Syntax
Description
B = addcats(
adds categories to the end of the category list for the input categorical array,
A
,newcats
)A
. The output categorical array, B
,
contains the same values as A
. The output, B
,
does not contain any elements equal to the new categories until you assign values
from newcats
to elements in B
.
If A
is an ordinal categorical array, you must specify the
'Before',beforewhere
or 'After',afterwhere
input arguments.
B = addcats(
adds categories before the category specified by
A
,newcats
,'Before',beforewhere
)beforewhere
.
B = addcats(
adds categories after the category specified by
A
,newcats
,'After',afterwhere
)afterwhere
.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced in R2013b
See Also
categories
| removecats
| iscategory
| mergecats
| renamecats
| reordercats
| setcats