File Exchange

image thumbnail

fig.m / closefig.m

version 1.0.0.0 (1.98 KB) by Sumedh Joshi
Automates selective closing of figure windows.

1 Download

Updated 14 Dec 2009

View License

Use:

>> fig('figure name');
>> plot(x,y);
>>
>> other stuff
>>
>> closefig('figure name');

Really just a convenience, but it helps in that closefig.m only closes figures that were tagged by fig.m. This way, I can insert the fig/closefig pair in code that generates plots so that at each run the code will replace its old figures with new ones without affecting other figure windows.

Cite As

Sumedh Joshi (2020). fig.m / closefig.m (https://www.mathworks.com/matlabcentral/fileexchange/26096-fig-m-closefig-m), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

Good stuff!

This is a magnificent piece of code.

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
gui

fig_closefig/