- 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
29 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Ajit Kasturi
am 19 Jun. 2020
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 Kommentare
Siehe auch
Kategorien
Mehr zu Interactive Control and Callbacks finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!