Hi All
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.
Richard
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)
numlabels =
str2num(get(ax,'XTickLabel'));
Error in plot2svg>axes2svg (line 1321)
exponent2svg(fid,groupax,axpos,paperpos,ax,axxtick,axytick,axztick)
Error in plot2svg (line 243)
group=axes2svg(fid,id,ax(j),group,paperpos);
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.
Comment only