Lsqcurvefit parameter problem for high degree polynomials
显示 更早的评论
I have a problem with lsqvurvefit. When I try to find the appropriate parameter of a problem defined as:
G is a known function for any t.
S is unknown function so I approximate it as a polynomial with 10 degree.
alpha is a unknown parameter. (I am looking for this parameter)
The relation between them is G=a*S.
I introduced this problem to lsqcurvefit. From where I stand I think that the objective is to optimize 12 parameters including a and parameters of polynomial to minimize the error function. When I start the code it finds a value for the parameter a. But it is nonsense. Moreover, when I plot the function G and a*S (after lsqcruvefit found the parameters) seperately they are so much different. So, I decided to increase the degree of the polynomial but nothing changes. Lsqcurvefit cannot fit a*S properly to G.
I couldn't find the reason for this.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File 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!