MATLAB: How to close UIAlert in AppDesigner by command

appdesignerMATLABuialert

I want to show some prompt message before dealing with a large data, after that I want to close it automatically without user's click action.
How to do that?
Thanks!

Best Answer

You can use message box tool in the base code itself
h = msgbox('Please Wait ...you are dealing with large data', 'Processing');
onCleanup(@()delete(h));
Under the condition when you are dealing with large data add this code
The onCleanup command here deletes the message box.