MATLAB: How to export graphs from MATLAB in PDF format to import into Acrobat Reader

exportgenerategraphsMATLABpdfprintsave

I would like to know how to export graphs from MATLAB in PDF format to import into Acrobat Reader.

Best Answer

As of MATLAB 6.1 (R12.1), you can export your graphs to PDF format using the PRINT function and the -dpdf flag. For example:
surf(peaks)
print -dpdf surf.pdf
For earlier versions of MATLAB, you can export your figure as a postscript file using the following procedure:
1. Export your figure as a PostScript figure using the following syntax:
print -dpsc filename.ps
2. Use Adobe Acrobat to convert this PS file into PDF format. Note that this is possible since PDF applications can read postscript files.