GUI close open images

I would like to create a button that closes all open images. If I use the 'close all' command, it closes the GUI as well. Can I either make this command not close the gui, or is it possible to close all of a certain type?

回答(1 个)

Walter Roberson
Walter Roberson 2012-7-7
编辑:Walter Roberson 2012-7-7
delete( findall(0, 'type','image') )
Note: if you used something like imshow() to display the image, then this will only get rid of the image itself and not the imshow frame.

类别

帮助中心File Exchange 中查找有关 Display Image 的更多信息

提问:

2012-7-7

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by