- 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
조회 수: 18 (최근 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!