Determine array equality, treating NaN values as equal

`tf = isequaln(`

returns
logical `A,B`

)`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 equal. Undefined categorical
elements, `NaN`

(Not a Number), or `NaT`

(Not
a Time) values are considered to be equal to other such values.

`tf = isequaln(`

returns
logical `A1,A2,...,An`

)`1`

(`true`

) if all the
inputs are numerically equal.

Was this topic helpful?