Hello,
I am currently doing some work in Matlab script (m file). It will generate a lot of figure when I run the file, but I only want it to display only the last figure.

 채택된 답변

Image Analyst
Image Analyst 2013년 6월 3일

1 개 추천

Then close them
h = figure;
% now close it
close h;
% Open a new one
h = figure;
% and so on.
Or just do
close all;
right before you show your last figure.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Printing and Saving에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by