필터 지우기
필터 지우기

multivariant least square fitting

조회 수: 3 (최근 30일)
Chong Tao
Chong Tao 2014년 10월 26일
댓글: John D'Errico 2014년 10월 26일
Can I do the following fitting using any built-in functions? or I have to write my own script?
I have x, y, P as independent variables, and fit a curve B to a function of :
B = b0 +b1*x +b2* y +b3 P + b4 *x^2 + b5*y^2 + b6 * P^2 + b7 x*y + b8*x*P + b9 * y*P;
There are 12 data points to get 10 coefficients, b0-b9.
I'd appreciate any comments. Thanks,

답변 (1개)

Matt J
Matt J 2014년 10월 26일
Looks like it's in the scope of polyfitn ( Download ). I can't vouch for the quality of the result (with any solver), though, seeing as you have such a small number of data points.
  댓글 수: 1
John D'Errico
John D'Errico 2014년 10월 26일
While polyfitn will work, I shiver at the thought, and that is my own code.
10 data points for 12 coefficients? The result might be virtually random numbers. More data generally means better estimates of the coefficients. You should look at the estimates of ParameterStd as provided. If those numbers are too large for your comfort, then you should ask if it is possible to get more data.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by