8.2.6.17 categorical.setcats

Method: out = setcats (obj, newcats)

Set categories for categorical array.

Sets the categories to use for obj. If any current categories are absent from the newcats list, current values of those categories become undefined.