- 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
21 次查看(过去 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 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!