Crop and save MatLAB figure as PDF (savePDF)
savePDF is a simple function, nicely crop the MatLAB figure and save it as PDF to a designated directory. If the directory doesn't exist, it creates one.
plot_name = name of the figure (e.g., 'My_Figure')
plot_path = folder to be saved as PDF (e.g., './My_Folder')
Cite As
Dr. Erol Kalkan, P.E. (2022). Crop and save MatLAB figure as PDF (savePDF) (https://www.mathworks.com/matlabcentral/fileexchange/70349-crop-and-save-matlab-figure-as-pdf-savepdf), 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.