MATLAB: Exponential asymptote

exponential curve fitting

Hi,
I used an exponential function to fit my data and I'd like to know where the function reaches a plateau. How do I calculate that?
Here's the function I used: y = a1+a2*exp(-a3*t)
I also tried a power function : y = a*b^t
Thanks in advance!

Best Answer

a1+a2*exp(-a3*t) plateaus at the point where a2*exp(-a3*t) is less than eps(a1) . You can work backwards from there:
a2*exp(-a3*t) = eps(a1)
exp(-a3*t) = eps(a1)/a2
-a3*t = ln(eps(a1)/a2)
t = -ln(eps(a1)/a2)/a3
You might need to tweak this calculation if a1 or a2 are negative.