How to save a MATLAB graphic in a right size .pdf?
993 views (last 30 days)
I save a graphic as .pdf format, but matlab will produce an A4 size to put this small picture in the middle of this A4 size pdf. The problem comes when I import them into my LaTeX file, i only need the picture size, not the whole A4 pdf size. Could anyone tell how to solve this problem?
Friedrich on 3 Aug 2011
you can do it in MATLAB through:
h = figure;
pos = get(h,'Position');