MATLAB: Messagebox

messagebox

hi there, how to close all the messagebox automatically using matlab code.

Best Answer

This seemed to work for me
h=msgbox('Click OK');
close(h);
You can put the close() in a timer callback if you want to close it after a certain time. But check that h exists (see the FAQ for methods). http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.28s.29.3F