How do I ask a for a user input in a loop but continue to execute if there is no response

1 回表示 (過去 30 日間)
john brice
john brice 2018 年 4 月 11 日
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 Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by