categorical

Methods

Method Reference: categorical.isequal

categorical: TF = isequal (C1, C2)
categorical: TF = isequal (C1, C2, …)

Return true if categorical arrays are equal.

TF = isequal (C1, C2) returns a logical scalar TF, which is true, if the categorical arrays C1 and C2 contain the same values, and false otherwise. Either C1 or C2 may also be a string array, a missing object array, a character vector, or a cell array of character vectors, which will be promoted to a categorical array prior to comparison.

If categorical arrays C1 and C2 are ordinal, they must have the same set and ordering of categories. If neither are ordinal, the category names of each pair of elements are compared. Hence, they do not need to have the same set of categories.

TF = isequal (C1, C2, …) returns a logical scalar TF, which is true, if all input arguments are equal, and false otherwise.

Source Code: categorical