Setting up export_fig - djoshea/matlab-utils GitHub Wiki

Installed export_fig from http://www.mathworks.com/matlabcentral/fileexchange/23629-exportfig

On Mac OS, ran brew install xpdf.

Problem with libfreetype dylib. Had to run export DYLD_LIBRARY_PATH=""; before each system(...) call inside pdftops and ghostscript to correct this.

Added a GetFullPath around the filename inside export_fig to prevent issues with '~' relative paths.