'Or' statement in matlab?
Show older comments
How can I do this without using else if?:
if balls == 0 & ( x > 5 OR y > 7)
run xscript
end
Thanks,
4 Comments
José-Luis
on 7 Sep 2012
which else if?
Aadil
on 7 Sep 2012
José-Luis
on 7 Sep 2012
Image Analyst understood faster and gave you the answer...
Simran Wasu
on 20 Feb 2016
Edited: Simran Wasu
on 20 Feb 2016
use '||' for OR command (without quotes).
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!