fig.m / closefig.m
Version 1.0.0.0 (1.98 KB) by
Sumedh Joshi
Automates selective closing of figure windows.
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 LinuxCategories
Find more on Interactive Control and Callbacks in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
fig_closefig/
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |