[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Plots from Matlab to Latex



Hi Linh,

> I have the follwing question: How can I import figures produced by 
> MATLAB into TEX text. TEX packages I use are VTEX and PCTEX.

I assume that PCTEX is just a PC implementation of LaTeX, since nowadays
nobody would bother with TeX, if he/she is not a hacker :-)

Here is the "standard" method: save your plot in Matlab as an EPS file
(EPS=Encapsulated PostScript), then use either \figure or \figure*
environment in LaTeX to include the resulting file in your document. You 
can save your *current* plot in Matlab using the print command, such as

		print -deps myplot.eps

BTW, you'd better not save your plots as image files (GIF, TIFF etc.), 
since it's not efficient and rather troublesome, especially if you're 
not familiar with Matlab and LaTeX.

Good luck!

-Thanh