How to write a code using if statement which when reads negative volume stops
显示 更早的评论
回答(1 个)
KSSV
2020-11-6
for i = [1 2 3 4 0 5 -6 -7 ]
if i < 0
break
end
i
end
类别
在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!