matlab2tikz v0.0.5 released

The next version v0.0.5 of matlab2tikz has just been released to the wild.

The script has undergone significant changes in large parts and can now deal with more MATLAB® plots than ever. For example, support for zplane plots and frequency response plots has been added. Also, thanks to verbose user input, a number of bugs with existing functionality has been fixed.

New command line options are:

  • silent (boolean, default false): be less verbose with warnings.
  • imagesAsPng (boolean, default true): when plotting images and color bars, create a PNG image that is inserted into the TikZ plots instead of imitating the image with little rectangles
  • minimumPointsDistance (numerical, default 0.0): Minimum distance for two points to be plotted separately. Can be used to artifically reduce the number of points in a plot.
  • extraAxisOptions (cell or char, default {}): Extra options that will be appended to each axis.

For more info and downloads, see the matlab2tikz page.

Comments

The script works fine on my laptop. However when I am trying to run on my PC, it is not working. I am getting following error on screen and the script is exiting.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
??? Undefined function or variable 'inputParser'.

Error in ==> matlab2tikz at 108
matlab2tikzOpts = inputParser;

Error in ==> plt_rollcmp at 96
matlab2tikz( 'C:\Parkhi\Work\VSS2010\paperdoc\Fig\rollcmpplt1.tikz');
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Is this related with version of matlab? Same version is being used on PC/Laptop. (MATLAB Version 7.0.1.24704 (R14) Service Pack 1) hence I dont see this as the reason

Kindly help.

Yep,
it's the version number. You need at least 2007a to use the inputParser; I'll include a graceful warning into the next release.

Cheers,
Nico

When I try a really simple plot like:

t = -4:0.1:4;
x = (abs(t) < 2).*(2-abs(t));
plot(t,x,'k')
centeraxes(gca)
matlab2tikz('test1.tikz')

the horizontal line and all the tick mark labels disappear. Any ideas?

Add new comment

Addthis