Mostrar comentarios más antiguos
hi there, how to close all the messagebox automatically using matlab code.
1 comentario
Jan
el 3 de Mayo de 2012
What does "automatically" mean? After a certain period of time? Would closing all figure windows solve your problem, or do you need to keep all non-messagebox figures open?
Respuesta aceptada
Más respuestas (2)
Ilham Hardy
el 3 de Mayo de 2012
close all ??
Asal Barak
el 10 de Dic. de 2013
0 votos
h=msgbox('Are you sure you want to delete this file?'); pause(2) close(h)
After 2 seconds your box will be closed. You can change the time to whatever you are intending to.
2 comentarios
Image Analyst
el 10 de Dic. de 2013
Unlike using a timer, this pause method will lock up the program during that time so the user will not be able to interact with anything else. It will not even continue if the user clicks OK immediately - it will still have to wait for the pause to finish.
Asal Barak
el 12 de Dic. de 2013
Thank you
Categorías
Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!