Partial data fitting with optimization
Show older comments
Hello, I need to fit the central part of this curve (-100,100) with a linear function, so that the difference between the curve and the fit is minimal. T1 - T7 are measured veocity values for different temperatures. I need to find the parameter, for which the curves in the central part are most straight. I do not need to fit the blue curve. Thank you.

1 Comment
Petr Michalek
on 17 Apr 2018
Answers (1)
Alberto Mora
on 21 Mar 2018
0 votes
polyfit(X,Y,1)
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!