Close all figures except specific (previously tagged) ones

버전 1.1.0.0 (1.4 KB) 작성자: Valerio Biscione
You can tag some figures to be "kept" when, later, you will call a function to close all the figures
다운로드 수: 304
업데이트 날짜: 2015/2/27

라이선스 보기

This is a variant of "close all figures except those listed" (http://uk.mathworks.com/matlabcentral/fileexchange/24420-close-all-figures-except-those-listed).
In this version you first tag the figures that you want to keep. Then, at anytime during the code, you can close all the figures but the tagged one by calling "cluk" (close all unkept).
For example, let's say you have 6 figure, 1 2 3 10 13 50.
with keepFig([3 10]) you will tag figure 3 and 10. This will not change the appearance of the figures in anyway.
At anypoint in the code, you can call cluk, which will close all the figures except figure 3 and 10.
You can untag all the figures by calling keepFig(-Inf). You can untag a specific figure by calling the negative of that figure's number (for example, if you want to untag figure 3, call keepFig(-3)).
You can tag all the figures by calling keepFig(Inf).
Enjoy!

인용 양식

Valerio Biscione (2024). Close all figures except specific (previously tagged) ones (https://www.mathworks.com/matlabcentral/fileexchange/49851-close-all-figures-except-specific-previously-tagged-ones), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2014b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0.0

changed title

1.0.0.0