printsave

Prints and saves MATLAB figures simultaneously
233 Downloads
Updated 24 Feb 2011

View License

printsave(basename) saves the current figure to basename.fig,
and prints it to basename.eps.
In addition, epstopdf is called to generate basename.pdf.
If the figure contains graphical element whose type is 'image',
the PNG format is used when first printing, and the ImageMagick
tool 'mogrify' is then called to convert the file to eps and pdf.

printsave(f,basename) uses f as figure handle instead of gcf.

Cite As

Romain Nguyen van yen (2026). printsave (https://www.mathworks.com/matlabcentral/fileexchange/30524-printsave), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006b
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
Version Published Release Notes
1.0.0.0