フィルターのクリア

uicontrol to start over a loop

4 ビュー (過去 30 日間)
feynman feynman
feynman feynman 2024 年 3 月 1 日
コメント済み: Voss 2024 年 3 月 9 日
uiwait/uiresume through uicontrol can be used to pause/continue a loop. Is there a corresponding ui+... to start over a loop from scratch that already finished running?

採用された回答

Jon
Jon 2024 年 3 月 1 日
編集済み: Jon 2024 年 3 月 1 日
Not sure from your description exactly what you are trying to accomplish, but lets say you want to run the loop whenever the user pushes a button on the UI. Then just have the callback function for the button press initialize and run the loop.
  4 件のコメント
feynman feynman
feynman feynman 2024 年 3 月 9 日
編集済み: feynman feynman 2024 年 3 月 9 日
Thank you very much for your help. Now I learnt how to add such a button in an app. I would like to add such a button to a figure rather than in an app, then what can we do?
Voss
Voss 2024 年 3 月 9 日
You can use GUIDE, or you can create the button programmatically using the uicontrol function or the uibutton function if your figure is a uifigure.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by