cftool two term exponential curve fit doesn't make sense
Mostra commenti meno recenti
Hey all. So I'm curve fitting some experimental data in MatLAB using the cftool. This is in R2014b. I'm fitting my data to a two term exponential function such that f(x) = a*exp(b*x) + c*exp(d*x). The curve on the plot looks good. My R squared values are 0.99 . . . but the coefficients make no sense.
a = 4.097e+07
b = -4.806
c = -4.097e+07
d = -4.806
Based on the above formula for a two term exponential, for an x value f(x) = 0. I can't extract these coefficients and use them elsewhere because they don't make sense and they don't produce the curve fit that cftool graphs that has the R^2 = 0.99 . . . Am I missing something?
Risposta accettata
Più risposte (1)
Star Strider
il 26 Mar 2015
0 voti
We can’t see all the digits in the coefficients you posted. Are they truly equal? Perhaps you only need one exponential.
2 Commenti
Matthew Pollard
il 26 Mar 2015
Star Strider
il 26 Mar 2015
I can’t imagine that you would need an R² value higher than 0.97 with real-world data. The criteria of interest are the residual sum-of-squares, and more importantly, the confidence intervals of the parameters.
Pay close attention to the confidence intervals of the parameters. If any of them include zero (one positive an one negative) that parameter is not needed in the model. That will tell you if you need all the parameters from both exponentials.
You can get more figures in the coefficients (and everything else) by choosing format long e in the Command Window or your script file.
Categorie
Scopri di più su Get Started with Curve Fitting Toolbox in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!