How to write a code using if statement which when reads negative volume stops
Show older comments
i need help please for using if statement
Answers (1)
KSSV
on 6 Nov 2020
for i = [1 2 3 4 0 5 -6 -7 ]
if i < 0
break
end
i
end
Categories
Find more on Loops and Conditional Statements 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!