Looping through times, stop once I reach a certain number
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Sam Smith
el 4 de Dic. de 2018
Respondida: Cris LaPierre
el 4 de Dic. de 2018
I have a list of times in a column, in HH:MM:SS. I want to go through each of these times, after converting them to seconds, and stop once I reach a certain number, say 3600. How do I go about doing this?
0 comentarios
Respuesta aceptada
Cris LaPierre
el 4 de Dic. de 2018
Set up a conditional statement that will execute a break statement if the condition is met (e.g. number == 3600).
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Loops and Conditional Statements en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!