equalwithequalnans
Element-wise equality with NaN treated as equal to NaN.
Syntax
Section titled “Syntax”C = equalwithequalnans(A, B)Description
Section titled “Description”Like eq but returns true at positions where both elements are NaN. The element-level companion of isequalwithequalnans.
Example
Section titled “Example”equalwithequalnans([1 NaN 3], [1 NaN 3]) % [1 1 1]See also
Section titled “See also”eq— Element-wise equality test (function form of==).isequalwithequalnans— Likeisequal, but treatsNaNs as equal to otherNaNs.