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.
Udit Gupta (2021). saveaspub(h, name, format) (https://www.mathworks.com/matlabcentral/fileexchange/59160-saveaspub-h-name-format), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.