A function for saving all open figures in MATLAB.
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
A function for saving all open figures in MATLAB.
The function saves all the open figures as .PNG and .FIG files. The output folder path is an optional argument of the function.
Each figure is saved both as a .FIG file and a .PNG file. The name of the file is a concatenation of the figure's number (according to MATLAB's order) and the Axes title if it exists.
The function works in LiveScripts too, provided it is placed in a separate section.
This is most useful for long scripts which produce a large number of figures which should all be saved, for reports or future examination.
Cite As
Samuel Londner (2026). saveallfigs (https://github.com/anutkk/saveallfigs), GitHub. Retrieved .
General Information
- Version 1.0.0 (2.1 KB)
-
View License on GitHub
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
Versions that use the GitHub default branch cannot be downloaded
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0 |
