Determine array equality, treating NaN values as equal
tf = isequaln(
returns logicalA,B
)1
(真正
) ifA
和B
are equivalent; otherwise, it returns logical0
(false
)。看看Input Argumentssection for a definition of equivalence for each data type.NaN
(不是一个数字),NaT
(不是时间),未定义的分类元素,和<缺失>
values are considered to beequalto other such values.
To treatNaN
,NaT
,<未定义>
,和<缺失>
values as unequal to other such values, useisequal
.
tf = isequaln(
returns logicalA1,A2,...,An
)1
(真正
) if all the inputs are equivalent.
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.