1
votes

Is it possible to export into LaTex a Matlab figure?

For now a possible way could be to export the figure into an EPS file and then include such file in the Latex document, but I was wondering if there are any packages to support .fig directly.

Thanks!

1
I dont think so, and it would not make sense. .fig is not an image file, is a MATLAB graphic class. - Ander Biguri
There shouldn't be such a possibility, without converting the .fig file to an image file. - codingEnthusiast
Yes you are right, I haven“t thought about the fact that .fig are not image files. I think the best options are the pdf format and the eps! - Betelgeuse

1 Answers

1
votes

Although your problem cannot be solved (i.e. you cannot include a .fig file in a PDF document), you might want to use matlab2tikz, which converts the figure into a native Tikz figure which you can then include in your PDF file and edit as necessary.