'Or' statement in matlab?
显示 更早的评论
How can I do this without using else if?:
if balls == 0 & ( x > 5 OR y > 7)
run xscript
end
Thanks,
4 个评论
José-Luis
2012-9-7
which else if?
Aadil
2012-9-7
José-Luis
2012-9-7
Image Analyst understood faster and gave you the answer...
Simran Wasu
2016-2-20
编辑:Simran Wasu
2016-2-20
use '||' for OR command (without quotes).
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Get Started with MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!