How can I generate error for a minimum value from lsqcurvefit data?
1 view (last 30 days)
Show older comments
I am using lsqcurvefit function to generate a fitting curve to a set of data. From this, I use the minimum value for a further calculation/result for which I used fminbnd. I also must identify the error in this calculation. Clearly, there must be some error associated with the fitting which thus causes error to appear in the minimum. Does anyone know how to get this error accurately?
Thank you so much for your help.
0 Comments
Accepted Answer
Matt J
on 19 Jun 2013
When called with 3 outputs, LSQCURVEFIT will return the residual,
[x,resnorm,residual] = lsqcurvefit(...)
You can apply any error metric you want to the residual, once you have it.
6 Comments
More Answers (0)
See Also
Categories
Find more on Least Squares 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!