fig.m / closefig.m

Automates selective closing of figure windows.
611 Downloads
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 (2024). fig.m / closefig.m (https://www.mathworks.com/matlabcentral/fileexchange/26096-fig-m-closefig-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Interactive Control and Callbacks in Help Center and MATLAB Answers
Tags Add Tags
gui

Community Treasure Hunt

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

Start Hunting!

fig_closefig/

Version Published Release Notes
1.0.0.0