'Or' statement in matlab?
Ältere Kommentare anzeigen
How can I do this without using else if?:
if balls == 0 & ( x > 5 OR y > 7)
run xscript
end
Thanks,
4 Kommentare
José-Luis
am 7 Sep. 2012
which else if?
Aadil
am 7 Sep. 2012
José-Luis
am 7 Sep. 2012
Image Analyst understood faster and gave you the answer...
Simran Wasu
am 20 Feb. 2016
Bearbeitet: Simran Wasu
am 20 Feb. 2016
use '||' for OR command (without quotes).
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!