File Exchange

image thumbnail

Save figures Shortcut

version (3.33 KB) by Edoardo Bezzeccheri
Save multiple figures in several formats with a shortcut that you can customize.


Updated 30 Jan 2015

View License

saveFigs allows one to save all, or a subset, of the open figures using just one function.
- Save all the open figures with one click;
- Automatically uses the name of the figure for making the file, or choose a prefix for naming;
- Choose the saving folder once for all in your script and the shortcut does the rest;
- Apply your custom Export style;
- Save in many formats: PDF, PNG, JPG, FIG;
- Overwrite protection for same-name files.
This function is particulary usefull when used as a Shortcut, so that it can export all the open figures in one click.
Inside the folder there are some Shortcut and in-script examples.
The updated version can always be found at

Cite As

Edoardo Bezzeccheri (2021). Save figures Shortcut (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (6)

laurent jalabert

The other concern is that I created a new folder to save figures into this specific folder. But this does not work for unknown reason. However, by just writing "saveFigs" without specifying any option, that will create an Img folder into my folder "resultat", and this Img folder contain all the figures ... but rotated at 90deg.

cd ..

Patryk Lakomiec

Pete Marsh

Brielle O'Brien

Magnus Lengquist


MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: save2pdf, SDF - Set the Figure

Community Treasure Hunt

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

Start Hunting!