'Or' statement in matlab?
Afficher commentaires plus anciens
How can I do this without using else if?:
if balls == 0 & ( x > 5 OR y > 7)
run xscript
end
Thanks,
4 commentaires
José-Luis
le 7 Sep 2012
which else if?
Aadil
le 7 Sep 2012
José-Luis
le 7 Sep 2012
Image Analyst understood faster and gave you the answer...
Simran Wasu
le 20 Fév 2016
Modifié(e) : Simran Wasu
le 20 Fév 2016
use '||' for OR command (without quotes).
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Debugging and Improving Code 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!