How to write a code using if statement which when reads negative volume stops
Mostrar comentarios más antiguos
i need help please for using if statement
Respuestas (1)
KSSV
el 6 de Nov. de 2020
for i = [1 2 3 4 0 5 -6 -7 ]
if i < 0
break
end
i
end
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!