File Exchange

image thumbnail


version 1.0 (2.21 KB) by

A script to use matlab2tikz with tikzexternalize.

1 Download


View License

matlab2tikzext(path,filename,width,height) exports a figure/plot by using
Nico Schlömer's matlab2tikz (File ID: #22022) to Latex/tikz.

Right before it checks by using Suresh Joel's md5 (File ID: #3432)
if the figure/plot-file has changed. If using tiksexternalize in Latex only
then a new plot will be compiled.

Many thanks to Nico Schlömer and Suresh Joel!


  path: (String) e.g. '../latex/'
  filename: (String) e.g. 'sine.tikz'
  width: (Real) e.g. 6
  height: (Real) e.g. 2.57

A simple example:


    x = 0:.1:2*pi;
    y = sin(x);
    axis tight;
    matlab2tikzext('../latex/','sine.tikz', 6, 2.57);







  - matlab2tikz (File ID: #22022),
  - md5 (File ID: #3432).

Comments and Ratings (0)

MATLAB Release
MATLAB 8.0 (R2012b)

Inspired by: matlab2tikz/matlab2tikz

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video