MATLAB: Verification of the intepretation of a simple code that contains “isequalwithequalnans”

if statement

Could you please verify the interpretation of the code
if ~(isequalwithequalnans(a, b) ==1 | isequalwithequalnans(a, c) ==1)
'not ok'
End
My interpretation is the following
If (a and b) are not equal OR (a and c) are not equal then
“Not ok”

Best Answer

isequalwithequalnans(a,b) | isequalwithequalnans(a,c)