How can I generate error for a minimum value from lsqcurvefit data?

1 view (last 30 days)
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.

Accepted Answer

Matt J
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
Stacy
Stacy on 19 Jun 2013
Thank you Matt J. I will try to do this. It makes sense to do it that way. Yes, I do know my variation of the input data as well.
I am not familiar with fmincon, but looking at the documentation, I do not think it will be of use for my data.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!