How to fit an exponential curve with known error bars
2 views (last 30 days)
Show older comments
I have some data (x,T) that can be fitted by an exponential curve, and I have error bars for my T values. I need to find a fitted exponential slope and report a slope error as well, taking the T error bars into account. This comment (https://www.mathworks.com/matlabcentral/answers/447185-how-to-do-curve-fitting-on-a-data-set-with-errors-associated-to-each-data-point-y-y#answer_362893) suggests a fmincon method, but then says that exponential expressions may require a different method without suggesting what it may be. Are there any MATLAB functions that would be most appropriate, or will this require custom coding? If the latter, any good methods for me to follow? Thanks!
Data:
x = [0.272; 0.706; 1.128; 1.508; 2.146];
T = [0.243113773; 0.101265823; 0.06343949; 0.0355; 0.015083799];
Terr = [ T+0.05.*T, T-0.05*T];
0 Comments
Answers (0)
See Also
Categories
Find more on Fit Postprocessing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!