Is these two conditions okay? sentence if
1 次查看(过去 30 天)
显示 更早的评论
if (qb==2 && qd==4)
0 个评论
采纳的回答
Roger Stafford
2017-11-8
It is syntactically correct, but impossible to satisfy. You are asking the variable qb to simultaneously be equal to 2 and to 4, which is not possible. If you want it to either be equal to 2 or else to 4, you should use this:
qb==2 | qb==4
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Object Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!