Lsqcurvefit parameter problem for high degree polynomials
Show older comments
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.
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with Curve Fitting Toolbox 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!