How do I ask a for a user input in a loop but continue to execute if there is no response
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
My code in a while statement that is collecting measurements every 1 minute. What I am trying to do is change the frequency of those measurements without stopping the code from running. So, if the code were to ask for a change, I don't want it to wait past 10 seconds for an input. If 10s elapses then I want to code to continue. If the user inputs 5 then I want to 10s interval to update to 1 minute and 10s. I have not found a clean way of doing this.
0 comentarios
Respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!