Partial data fitting with optimization

조회 수: 2 (최근 30일)
Petr Michalek
Petr Michalek 2018년 3월 21일
댓글: Petr Michalek 2018년 4월 17일
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
Petr Michalek
Petr Michalek 2018년 4월 17일
I need to specify my question. The values of t1-t7 are calculated from measured data according to one parameter (ny), whose value I need to find with the optimization. So my idea is, that I want to minimize the difference between values t1 and fitting with line min(t1-fit line1), min(t2-fit line2), etc. This fitting with optimisation then results in the parameter ny, for which are the differences between calculated values of t1 and its fit with line1 (at interval psi=-90 to +90) minimal.

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

답변 (1개)

Alberto Mora
Alberto Mora 2018년 3월 21일
polyfit(X,Y,1)

카테고리

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