I have an issue getting plot2svg working on matlab 2014b, whereas it worked perfectly before.
Initially I had the some problem as Mirko, but I was able to fix it using the comments below. I now get the following errors:
Warning: Unhandled child type: contour
Warning: Unhandled main figure child type: colorbar
The code produces an svg file but the axes are empty and there is no colorbar.
I'm using this function since long time ago, but now I upgrated matlab to R2014b version and it isn't working anymore!
I get this msg error:
Error using str2num (line 32)
Requires string or character array input.
Error in plot2svg>exponent2svg (line 2429)
Error in plot2svg>axes2svg (line 1321)
Error in plot2svg (line 243)
Eshwar - I considered offering a 5th order or higher fit when I wrote the code. I did not do so however, for valid reasons, at least what I considered valid ones.
- I've only rarely ever needed more than 3rd order. In one such case we were modeling paper paths through a copier, and the path needed to be smoother than a cubic spline could offer.
- Higher orders than a cubic are a serious problem for many of the most useful constraints one may want to apply. Monotonicity for example, is done using a set of necessary constraints based on an inequality from a Fritsch and Carlson paper. Higher orders than cubic however will not allow such a nice solution, so we would have problems ensuring true monotonicity. The curvature constraints would also be more difficult to satisfy.
So in the end, I chose not to implement higher orders than cubic. Sorry.