MATLAB: Close a message box thru coding

close message box

how to close a message box displayed thru coding?… In my pjt to process an image it is taking time… so i displayed a message box saying "please wait'… now when the output is being displayed i wanted to close that message box automatically and then display the image…. what shud i do?

Best Answer

You could do something like
h = msgbox('please wait');
n = 0;
while rand > 1e-9; n = n+1; end;
delete(h);
Where the while loop is whatever processing that you want to do that takes a long time.