matlab2tikz

Convert MATLAB figures into TikZ/Pgfplots figures for LaTeX

brewmacoslinux
Try with needOr install directly
Source

About

Convert MATLAB(R) figures into TikZ/Pgfplots figures

Commands

matlab2tikz

Examples

Convert a MATLAB figure file to TikZ format$ matlab2tikz('figure.fig', 'output.tikz')
Export current MATLAB figure with custom options$ matlab2tikz('myplot.tikz', 'width', '8cm', 'height', '6cm')
Generate standalone LaTeX file from MATLAB figure$ matlab2tikz('plot.tikz', 'standalone', true)