closing a specified figure (if exist)
Mostrar comentarios más antiguos
does anyone know how to close a specified figure if it exists currently? for example: h=figure
if h exists close(h) end
Respuesta aceptada
Más respuestas (2)
Paulo Silva
el 6 de Sept. de 2011
close(findall(0,'type','figure','name','flashing'))
1 comentario
mohammad
el 6 de Sept. de 2011
Zoltan Gal
el 13 de Abr. de 2019
0 votos
If the index of figure is 5, then
close(findobj('type','figure','number',5))
Categorías
Más información sobre Creating, Deleting, and Querying Graphics Objects 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!