# Translating Matlab figures into TikZ

When ever I want to write a research paper and print the simulated results (by Matlab) into an .eps file, I think of a direct way of translating Matlab fig files into LaTeX (especially TikZ).

Is there a way to do such a thing?

• Jun 20, 2013 at 4:52
• I wonder Why would you want to do the conversion vs. just include graphics? Matlab's exportfig mathworks.com/matlabcentral/fileexchange/23629-exportfig experts excellent quality image from Matlab grphics. What advantage are there to convert it to Tikz and then use that in Latex? Will the result be better than including ps or png in the Latex document? Thanks. Jun 20, 2013 at 4:53
• @Nasser Because the result is far from excellent with matlab. Jun 20, 2013 at 5:35
• @Nasser: just including images does not ensure you to have the same font of the rest of the document; usually, one immediately perceives this difference. That's why if you compare two copies of the same document, one done including pictures, the other done creating pictures with, say, TikZ you will realize how much the quality differs. For a more detailed picture, refer to Why draw diagrams using LaTeX when there are open source tools like OpenOffice? Jun 20, 2013 at 6:28