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개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by