saveallfigs

A function for saving all open figures in MATLAB.
47 Downloads
Updated 1 Dec 2019

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 (2024). saveallfigs (https://github.com/anutkk/saveallfigs), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Printing and Saving in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
1.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.