How to apply linear least squares fit for two entities?

조회 수: 6 (최근 30일)
Amjad Iqbal
Amjad Iqbal 2022년 7월 24일
댓글: Matt J 2022년 7월 25일
Dear Researchers,
I have two entities namely sigma (dB) and U (m/s) respectively. As given in attach figure, a linear least squares is used to fit among two entities. I have attached .mat files which contains sigma and U values. I need to fit this curve to analyse Bias and RMS.
I lookforward to receive your valubale suggestions.
Thank you!
  댓글 수: 2
dpb
dpb 2022년 7월 24일
That certainly doesn't look to be nonlinear. What's the functional form you think you should be fitting (a literature reference to the type of data/from whencecame the above figure, maybe???)
Amjad Iqbal
Amjad Iqbal 2022년 7월 24일
As a matter of fact, I have sigma_VH from product and using equation-1 given in reference to obtain U.
In Fig-1 (d), this fit is applied among Sigma_VH and U. According to what they claim is nonlinear. However, I tired is linear. As you can see in attached result.
What's your suggetions and how to fit line among these two?

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

채택된 답변

Matt J
Matt J 2022년 7월 24일
  댓글 수: 2
Amjad Iqbal
Amjad Iqbal 2022년 7월 24일
I tried but this doesn't apply, if you may chech with my attached datasets will be helpful.
Matt J
Matt J 2022년 7월 25일
Works fine for me
>> fobj=linear2dFit([U_vh1(:)';sigma_o_VH1(:).'])
fobj =
linear2dFit with properties:
p1: [4.7831 -27.4053]
p2: [9.1807 -19.8232]

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Transfer Function Models에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by