Path: news.mathworks.com!not-for-mail From: "Angela Brands" <angela_christina@hotmail.com> Newsgroups: comp.soft-sys.matlab Subject: Re: matlab figure in latex Date: Sat, 20 Mar 2010 17:17:03 +0000 (UTC) Organization: The MathWorks, Inc. Lines: 45 Message-ID: <ho2vuf$pc0$1@fred.mathworks.com> References: <ho2slf$8cd$1@fred.mathworks.com> <77e3275f-0021-4642-bd10-915bd5ed5d04@r27g2000yqn.googlegroups.com> Reply-To: "Angela Brands" <angela_christina@hotmail.com> NNTP-Posting-Host: webapp-03-blr.mathworks.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: fred.mathworks.com 1269105423 25984 172.30.248.38 (20 Mar 2010 17:17:03 GMT) X-Complaints-To: news@mathworks.com NNTP-Posting-Date: Sat, 20 Mar 2010 17:17:03 +0000 (UTC) X-Newsreader: MATLAB Central Newsreader 2138781 Xref: news.mathworks.com comp.soft-sys.matlab:618549 Rune Allnor <allnor@tele.ntnu.no> wrote in message <77e3275f-0021-4642-bd10-915bd5ed5d04@r27g2000yqn.googlegroups.com>... > On 20 Mar, 17:21, "Angela Brands" <angela_christ...@hotmail.com> > wrote: > > hi there, > > > > I want to include a matlab figure in a latex file... > > > > Let say I want the figure: plot(1:10) > > I've read that you can save this figure as an eps file using the command: > > > > print -deps plot > > > > So now I have a file called plot.eps > > > > Then I need to iclude the figure as follows: > > > > \documentclass{report} > > \usepackage{graphicx} > > \begin{document} > > \begin{figure} > > \centering > > \includegraphics{plot} > > \end{figure} > > This is a sample document. > > \end{document} > > > > but when I build it, I get an Error that says: file 'plot' not found > > Specify the filename extension both when you plot the figure, > > print -deps plot.eps > > and when you include the plot in the LaTeX document: > > \includegraphics{plot.eps} > > Make sure you use a standard filename extension for the > format you print to, or LaTeX might become confused about > the format of the figure. > > Rune Thanks for your reply!! I did what you told me to do but still I get an Error with: file 'plot.eps' not found and now I also get a warning: unknown graphics extension: .eps this is frustrating...