saveaspub(h, name, format)
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 (2024). saveaspub(h, name, format) (https://www.mathworks.com/matlabcentral/fileexchange/59160-saveaspub-h-name-format), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!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. |