Seems nice but does not work in R2013a.
It gives me smt like
<tr><td></td><td>.TableValues.<tr><td></td><td>
etc.
I guess it is similar problem to Anna's. Any idea how to overcome it?
Thanks

To get boundedline to treat nans the same way 'plot' does - i.e., leaving a blank space above where the nans appear - I inserted the following code at line 268:
% Splitting lines w/ nans in them.
plotdata_supp = cell(0, 7);
is_nan = zeros(size(plotdata,1),1);
for k = 1:size(plotdata,1)
naninds = isnan(plotdata{k,1}) | isnan(plotdata{k,2});
if any(naninds)
is_nan(k) = 1;
notnaninds = [0 ~naninds 0];
notnanstarts = find(diff(notnaninds) == 1);
notnanends = find(diff(notnaninds) == -1) - 1;
nopolys = length(notnanstarts);
for l = 1:nopolys
poly_indices = notnanstarts(l):notnanends(l);
xdata = plotdata{k,1}(poly_indices);
ydata = plotdata{k,2}(poly_indices);
lodata = plotdata{k,6}(poly_indices);
hidata = plotdata{k,7}(poly_indices);
plotdata_supp = [plotdata_supp; {xdata ydata ... plotdata{k,3:5} lodata hidata}];
end
end
end
plotdata = [plotdata(~is_nan, :); plotdata_supp];

5

05 Aug 2014

boundedline.m
Plot one or more lines with a shaded boundary (can represent error, confidence intervals, etc).