- 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 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Ajit Kasturi
le 19 Juin 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 commentaires
Voir également
Catégories
En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!