saveaspub(h, name, format)
Version 1.0.0.0 (1.68 KB) by
Udit Gupta
Save Matlab plots and figures for publication as pdf or eps vector formats.
This is a functionally similar to Matlab "saveas" command and saves plots and figures as pdf or eps formats such that the saved file matches the proportions and margins as displayed on screen.
PDF and EPS formats allow the images to be saved in vector formats thus allowing them to be scaled to any sizes and are therefore preferred when used for publications. This is specially useful if Latex or its variants are being used as the document preparation system.
Cite As
Udit Gupta (2026). saveaspub(h, name, format) (https://www.mathworks.com/matlabcentral/fileexchange/59160-saveaspub-h-name-format), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2013b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Printing and Saving in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | Minor fix. |
