#### 8.2.5.13 categorical.removecats ¶

Method: `out =` removecats `(obj)` ¶

  Removes all unused categories from obj. This is equivalent to `out = squeezecats (obj)`.

Method: `out =` removecats `(obj, oldcats)` ¶

  Remove categories from categorical array.

  Removes the specified categories from obj. Elements of obj whose values belonged to those categories are replaced with undefined.

  newcats is a cellstr listing the category names to add to obj.