How do I calculate the error of a fitted curve?
9 views (last 30 days)
Show older comments
Janna Hinchliff
on 15 Jan 2019
Commented: Star Strider
on 16 Jan 2019
Say I have some data points, which I do not have error bars for, and I fit a Gaussian (or possibly Lorentzian) curve to these data points. I want to find a parameter representing how accurate this fit is, with respect to the x coordinate, if I assume that each data point has no error. How could I go about doing this kind of fit in Matlab? I'm happy with some simple error parameter like the standard error of the data points with respect to the fit, but I'm not sure of the best Matlab function to use and whether Matlab has this information without doing extra calculations.
0 Comments
Accepted Answer
Star Strider
on 15 Jan 2019
1 Comment
Star Strider
on 16 Jan 2019
@Janna Hinchliff — I replied to your classmate’s Question on a similar topic, and to the Comment you posted to it.
If my Answer to either Question helped you solve your problem, please Accept my Answer here!
More Answers (0)
See Also
Categories
Find more on Get Started with MATLAB 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!