GUI close open images

Asked by Shane on 7 Jul 2012
Latest activity Answered by Walter Roberson on 7 Jul 2012

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?

0 Comments

Shane

Products

No products are associated with this question.

1 Answer

Answer by Walter Roberson on 7 Jul 2012
Edited by Walter Roberson on 7 Jul 2012
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.

0 Comments

Walter Roberson

Contact us