How to inclued a matlab figure in latex docmument?
1 view (last 30 days)
Show older comments
I used Texworks, pdflatex compiler. I saved a matlab figure using the comment print -deps lote.eps. I used following comments \begin{figure} \centering \includegraphics{lote.eps} \end{figure} But I got error that LaTeX Warning: File `lote.eps' not found on input line 51.
! LaTeX Error: Unknown graphics extension: .eps.
I used pdf instead of eps, again I gor error. I have tried a number of times. Please help me.
0 Comments
Answers (2)
Walter Roberson
on 17 Sep 2012
pdflatex does not support including eps, See http://amath.colorado.edu/documentation/LaTeX/reference/figures.html
0 Comments
Image Analyst
on 17 Sep 2012
For what it's worth, from the FAQ:
MATLAB and LaTeX: Arno Linnemann has written an M-file to simplify the inclusion of MATLAB graphics into LaTeX documents, along with a nice document of tips and tricks. http://www.uni-kassel.de/~linne/matlab/WelcomeEng.html
0 Comments
See Also
Categories
Find more on Printing and Saving in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!