printsave

Prints and saves MATLAB figures simultaneously

You are now following this Submission

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://se.mathworks.com/matlabcentral/fileexchange/30524-printsave), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Printing and Saving in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0