Very very nice. Couldn't get a decently functional scrollbar with the built-in MatLab UI widgets, with this it's very straightforward. Along the way I found a bug in isappdata, which needs an output value and currently doesn't have any.
Hi thanks for supplying this script.
After reading the help file and trying to following the examples (only #2 seemed to work btw), my understanding how this script works is still a little vague. I have three questions:
1) What is the purpose of the variable 'tt' and how is it derived?
2) Why does the script only work when lsq_val is set to 'no'
3) What exactly are the parameters 's' returns - e.g., if I'm running a double exponent, does it return, in the following order:
A1*exp(-x/t1)+A2*exp(-x/t2)+y0
where:
A1 = first amplitude
t1 = first lifetime
A2 = second amplitude
t2 = second lifetime
yo = offset
Kind regards,
Matt
This is just the fit I have been looking for, but I find I get poor fits on experimental data (y positions of oscillating cantilever beam) depending on the time limits used in the data.
Is there any constraint requiring that an integer number of vibration cycles be included in the limits for the time data? I get a reasonably good fit for 1 cycle but a poor fit when several cycles are included.