verification of the intepretation of a simple code that contains "isequalwithequalnans"
Afficher commentaires plus anciens
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”
Réponse acceptée
Plus de réponses (1)
C.J. Harris
le 6 Juil 2012
Modifié(e) : C.J. Harris
le 6 Juil 2012
0 votes
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.
1 commentaire
antonet
le 6 Juil 2012
Catégories
En savoir plus sur Scope Variables and Generate Names dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!