Correct Usage of uiwait and uiresume in MATLAB App Designer
44 views (last 30 days)
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`
And `uiresume` in
function UIFigureCloseRequest(app, event)
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.
Ajit Kasturi on 19 Jun 2020
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.