how to close error dialog
29 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
wenchao zhang
el 29 de Ag. de 2023
Comentada: wenchao zhang
el 31 de Ag. de 2023
after run some script, i got so many error dialog, how to quickly close them at one time.
0 comentarios
Respuesta aceptada
Adam Danz
el 29 de Ag. de 2023
Editada: Adam Danz
el 30 de Ag. de 2023
Error dialogs produced by errordlg or msgbox produce figures. The command below will close all existing figures.
close(findall(groot,'type','figure'))
If you want to only close all dialogs produced by errordlg,
close(findall(groot,'type','figure','tag','Msgbox_Error Dialog'))
If you want to only close all dialogs produced by msgbox,
close(findall(groot,'type','figure','tag','Msgbox_ '))
2 comentarios
Más respuestas (1)
Image Analyst
el 29 de Ag. de 2023
Fix the code or data so that the errors never occur. Or else just call "return" instead of
uiwait(errordlg("You made a mistake!"))
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:
7 comentarios
Image Analyst
el 29 de Ag. de 2023
Yes, I know. And I also know that obviously you never tried my solution. However I think Adam may have a better answer below. Of course both of our solutions mean running code, either as a script (mine) or in the command window (Adam's).
Ver también
Categorías
Más información sobre Publishers and Subscribers en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!