tf = isequaln(A,B) returns
logical 1 (true) if A and B are
the same size and their contents are of equal value; otherwise, it
returns logical 0 (false). The
test compares both real and imaginary parts of numeric arrays. isequaln ignores
the data type of the values in determining whether they are equal.
For cell arrays, categorical arrays, tables, or structures, the function
returns logical 1 (true) only
when all elements and properties are numerically equal. Undefined
categorical elements or NaN (not a number) values
are considered to be equal to other such values.

Inputs to be compared, specified as numeric arrays, categorical
arrays, cell arrays, tables, or structures. Also, you can specify
the inputs as logical arrays, character arrays, or objects. The numeric
types of A and B do not have
to match.

You can compare a categorical array to a cell array of strings
of the same size, or a single categorical element to a single string.

If inputs A and B are both

Structures -- Fields need not be in the same order
as long as the contents are equal.

Ordinal categorical arrays -- Must have the same sets
of categories, including their order.

Categorical arrays that are not ordinal -- Can have
different sets of categories, and isequaln compares
the category names of each pair of elements.

Objects of different classes -- isequaln returns
logical 0 (false). This applies
even when the objects have the same properties and their values match.

Series of inputs to be compared, specified as numeric arrays,
categorical arrays, cell arrays, tables, or structures. Also, you
can specify the inputs as logical arrays, character arrays, or objects.
The numeric types of the inputs do not have to match.

You can compare categorical arrays to cell arrays of strings
of the same size, or single categorical elements to single strings.

If the inputs are all

Structures -- Fields need not be in the same order
as long as the contents are equal.

Ordinal categorical arrays -- Must have the same sets
of categories, including their order.

Categorical arrays that are not ordinal -- Can have
different sets of categories, and isequaln compares
the category names of each pair of elements.

Objects of different classes -- isequaln returns
logical 0 (false). This applies
even when the objects have the same properties and their values match.

When comparing handle objects, use == to
test whether objects have the same handle. Use isequaln to
treat NaN values as equal and determine if objects with different
handles have equal property values.

Use isequal if
you want to test for equality and treat NaN values
as unequal.