Add categories to categorical array
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.
categories | iscategory | mergecats | removecats | renamecats | reordercats | setcats