- https://blogs.mathworks.com/community/2011/03/28/using-uiwaituiresume-to-control-program-flow/
- https://www.mathworks.com/help/matlab/ref/uiwait.html#:~:text=uiwait%20blocks%20execution%20until%20the,the%20figure%20f%20is%20deleted.
- https://www.mathworks.com/help/matlab/ref/uiresume.html
Correct Usage of uiwait and uiresume in MATLAB App Designer
28 ビュー (過去 30 日間)
古いコメントを表示
I am really having confusion where to place this both commands `uiwait` and `uiresume`
I am using app designer in matlab. and I am having this GUI in the middle of the code, so for the program to stop until this GUI complete, I am using these commands.
I tried placing
`uiwait` in `app startupFcn`
function startupFcn(app)
uiwait(app.UIFigure)
end
And `uiresume` in
function UIFigureCloseRequest(app, event)
uiresume(app.UIFigure)
delete(app)
end
But ended with errors
`Error using getappdata Value must be a handle`
My GUI will close when I press a Button because I assigned `closereq` at the end of that Button callback function.
Let me know if any further info is needed.
0 件のコメント
回答 (1 件)
Ajit Kasturi
2020 年 6 月 19 日
Hi,
Go through the following resources available for uiwait and uiresume in MATLAB App Designer:
There are various examples on how to use it in these links.
2 件のコメント
参考
カテゴリ
Help Center および File Exchange で Interactive Control and Callbacks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!