Thursday, July 14, 2011

Print TiKz figures from matlab

Go to

http://win.ua.ac.be/~nschloe/content/matlab2tikz

download the zipfile, place .m-scripts in matlab working directory.
Print to TiKz figure from matlab with

matlab2tikz( 'myfile.tikz' );

correct the plot labels (escape %, remove or add $ for math mode), embed into
LaTeX file by

\newlength\fheight \newlength\fwidth \setlength\fheight{4cm} \setlength\fwidth{6cm} \input{myfile.tikz}

No comments:

Post a Comment