How to display only current figure

3 views (last 30 days)
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.

Accepted Answer

Image Analyst
Image Analyst on 3 Jun 2013
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.

More Answers (0)

Categories

Find more on Graphics Object Identification in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!