E.g.
f = figure;clear f;
How can I programtically make it so that the figure that is created will be closed when the second line of code is run?
I.e., I want clearing the graphics handle to also delete the graphics object.
cleardeletegraphicshandleobject
f = figure;clear f;
Best Answer