matlab2tikz
Converts MATLAB®/Octave figures to TikZ/pgfplots figures
matlab2tikz is a MATLAB(R) script to convert native MATLAB(R) figures to TikZ/Pgfplots figures that integrate seamlessly in LaTeX documents. matlab2tikz supports the conversion of most MATLAB figures, including 2D and 3D plots. For plots constructed with third-party packages, your mileage may vary. Sometimes, MATLAB makes it hard to create matching LaTeX plots by keeping invisible objects around or stretching the plots too far beyond the bounding box.