I have some Matlab code that produces some diagrams. All I want to do, is to import these diagrams into TeXmaker. In which format do I have to save these diagrams and what packages do I need for this purpose?
You will want to export images in EPS format and use
graphicx package to include them in your TeX document. If you need to make labels and and add formulas to your images you will need
I use Sage math for Ubuntu and the both may have one or more things in common. Generate an EPS and a PDF format for the same diagram and then use the
\includegraphics in the
file.tex. But in Sage though you don't need any command it does it for you.