Exporting MATLAB figures to LaTeX
The standard way of exporting figures from MATLAB to LaTeX is to use the builtin print command to export the figure to an eps file using:
print -depsc $filename
Unfortunately figures exported this way generally do not look like the original MATLAB figures. The aspect ratio is different and the fonts are too small. This can be overcome by tweaking the paper size, the font size and the line thickness but the process is fiddly and resulting eps files are hard to use since alternative TeX compilers like XeTeX and LuaTeX do not support eps files out of the box.