Using assumptions while curve fitting
Ältere Kommentare anzeigen
Hello all,
I have a simple (I think!) question. I have an xy data set that I need to fit to a custom equation. x values range from 0 to 500 (they are concentrations, so negative values are unphysical/nonsensical), y values range from ~135 to 260.
The issue is this. The custom equation I need is a hyperbola. For x>0 the hyperbola the curve fitting tool solves for is excellent. However, I am left (in the curve fitting window) with a chunk of the hyperbola that is also for x<0. This piece of the function, which is nowhere near a data point, seems to be leading to an artificially low R^2 and other goodness-of-fit statistics.
Can I build an assumption into the curve fitting tool or command line fitting procedure where my custom equation assumes x>=0 and so yields reasonable goodness-of-fit values?
Thank you sincerely for any assistance you can provide!
Sam
1 Kommentar
Walter Roberson
am 29 Aug. 2013
Which routine are you using to do the fitting?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Get Started with Curve Fitting Toolbox finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!