True if categorical arrays are equal
Syntax
TF = isequal(A,B)
TF = isequal(A,B,C,...)
Description
TF = isequal(A,B) is true (1)
if the categorical arrays A and B are
the same class, have the same size and the same sets of levels, and
contain the same values, and false (0)
otherwise.
TF = isequal(A,B,C,...) is true (1)
if all the input arguments are equal.
Elements with undefined levels are not considered equal to each
other.
See Also
getlabels
 | isempty (dataset) | | islevel (categorical) |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit