matlab2tikz v0.0.3 released

Again, after around two months of development, the next version v0.0.3 of matlab2tikz has been released.

The script was extended to support subplots with their exact alignment. This wasn't particularly easy to do MATLAB itself in its plotting routines pulls some ugly tricks to achieve that.

Also, reverse axes are now handled correctly what leads to images now being translated nicely into TikZ/pgfplots.

As a sidenote: I saw some really nice pictures of pgfplots introducting three-dimensional stuff, like, surface and parameter plots. According to pgfplots's main developer Christian Feuers�nger that'll need some more time, but as soon as the release is there matlab2tikz will make use of it. So, get ready for MATLAB 3D plots in proper LaTeX!

For more info and downloads, see the matlab2tikz page.


  1. Very useful function.

    Is there a way to make a matlabtikz figure proportional to the usual \textwidth dimension?

    1. Hi Augusto,

      starting from the new version 0.0.4 (just submitted to MathWorks), there is. Export the figure with

      >> matlab2tikz( 'myfile.tikz', 'height', '\figureheight', 'width', '\figurewidth' );

      and include the result into you LaTeX file by



Post a Comment