verification of the intepretation of a simple code that contains "isequalwithequalnans"
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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”
0 Kommentare
Akzeptierte Antwort
Andrei Bobrov
am 6 Jul. 2012
Bearbeitet: Andrei Bobrov
am 6 Jul. 2012
isequalwithequalnans(a,b) | isequalwithequalnans(a,c)
4 Kommentare
C.J. Harris
am 6 Jul. 2012
Maybe I'm missing something here, but this is still not correct. Notice the NOT symbol (~) in the original statement. Your answer is the opposite of the correct answer.
Weitere Antworten (1)
C.J. Harris
am 6 Jul. 2012
Bearbeitet: C.J. Harris
am 6 Jul. 2012
No, that interpretation is NOT correct.
The statement says if BOTH b and c are different to a then 'Not ok'. Or in other words it is 'ok' as long as either b OR c is equal to a.
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!