How do I ask a for a user input in a loop but continue to execute if there is no response
조회 수: 2 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!