isequaln
Determine array equality, treating NaN values as equal
Description
tf = isequaln(
returns logicalA,B
)1
(true
) ifA
andB
are equivalent; otherwise, it returns logical0
(false
). See theInput Argumentssection for a definition of equivalence for each data type.NaN
(Not a Number),NaT
(Not a Time), undefined categorical elements, and
values are considered to beequalto other such values.
To treatNaN
,NaT
,
, and
values as unequal to other such values, useisequal
.
tf = isequaln(
returns logicalA1,A2,...,An
)1
(true
) if all the inputs are equivalent.
Examples
Input Arguments
Tips
The equality of two function handles depends on how they are constructed. For more information, seeCompare Function Handles.
isequaln
returns logical0
(false
) for two objects with dynamic properties, even if the properties have the same names and values.isequaln
compares only stored (non-dependent) properties when testing two objects for equality.When comparing two handle objects, use
==
to test whether objects have the same handle. Useisequaln
to determine if two objects with different handles have equal property values.