covariance between the estimated parameters from curve fitting toolbox
조회 수: 26 (최근 30일)
이전 댓글 표시
Hello,
I have collected data (x,y) from a sine wave. Now I want to fit a model to this data, e.g: y=A*sin(B*x+C) or y=E + A*sin(B*x) + D*cos(B*x).
Is there a way to estimate this parameters (A to D) with matlab, outside the curve fitting toolbox? The latter can provide me the parameters and confidence intervals, but i'm interested in the covariance between the estimated parameters.
If not, is there another way to calcualte the parameters and covariance between the estimated parameters A to D?
Thanks a lot.
Bram
댓글 수: 0
채택된 답변
Matt J
2019년 8월 23일
편집: Matt J
2019년 8월 23일
There is lsqcurvefit in the Optimization Toolbox. However, the Curve Fitting Toolbox does let you return the Jacobian, which is presumably what you would use for your covariance analysis,
댓글 수: 3
Matt J
2021년 4월 11일
It is the 7th output argument of lsqcurvefit
[x,resnorm,residual,exitflag,output,lambda,jacobian] = lsqcurvefit(___)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Interpolation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!