What function can fit this line better?
Show older comments

The plot below was created using functions that needed to have coefficients optimized to have the least error by this line: Coeff{n,1} = lsqnonlin(@(C)ModelObj(C,DataFilter),x0,lb,ub);. The optimization is not giving good coefficients for the fit and it's only using the top points while ignoring the bottom points. The data set has a wide range, so is there another function I can use that normalizes or weights the data equally so that I get a better fit?
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with Curve Fitting Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!