Watch this Author's files
Very nice! Works exactly as advertised and will be very useful.
... (meant to say "off by a factor of approximately sqrt(n).")
This is a nice script, but there appear to be a couple bugs regarding the calculation of confidence intervals.
First, a minor typo: on line 122,
if nargin < 5
if nargin < 4
More significantly, on line 167,
stats.s_b = std(b_sub,,2);
stats.s_b = std(b_sub,,2)*(n-1)/sqrt(n);
Without the latter bug fix, the confidence intervals that deming.m computes are off by a factor of sqrt(n).
Great tool. I modified your function by adding drawnow() right before enabling colorbar() (at the bottom of the program) so that the plot won't get shrunk unjustifiably when I rescale the figure. Hope it'll be useful info to you.
Very useful. Good documentation and design. Thank you