필터 지우기
필터 지우기

GUI close open images

조회 수: 4 (최근 30일)
Shane
Shane 2012년 7월 7일
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.

카테고리

Help CenterFile Exchange에서 Display Image에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by