[Tex/LaTex] Best practices for using MATLAB images in LaTeX

formattinggraphicsMATLABpdfpdftex

I am writing a paper currently using PDFTEX, and I make heavy use of MATLAB figures.

The problem is that when I make a MATLAB figure, I can adjust it to any size, before saving it. When I save it, I can save it as a .png, .tiff, .jpg, etc. Lastly, on LaTeX itself, I can adjust the size of the image there as well, (height, width, etc etc).

All those choices give me various quality images on my paper, so I am not sure what to do… do I have MATLAB images always large and then shrink them in LaTeX? Or make them small in MATLAB and expand them LaTeX? Is one image format better for display purposes in a PDF? What are best practices here?

Thank you.

Best Answer

My usual practice is to export MATLAB figures as .pdf files, because they are readily recognizable by PDFTEX and are rendered as vectorized images so resizing does not affect quality. The following is a nice MATLAB extension that works great for exporting figures as .pdf without the problem of exporting the image as a whole page:

http://www.mathworks.com/matlabcentral/fileexchange/23629-export-fig

It also has a nice documentation page: https://sites.google.com/site/oliverwoodford/software/export_fig