フィルターのクリア

Fitting the curve problem

1 回表示 (過去 30 日間)
Yumeng Yin
Yumeng Yin 2022 年 3 月 2 日
編集済み: Yumeng Yin 2022 年 3 月 10 日
I try to fit an s-shape curve with the function that I define. But I only got a bad fit with the constant. Attached file is the data file and my scripts. Any advice will be appreciated.
  2 件のコメント
Image Analyst
Image Analyst 2022 年 3 月 3 日
For our convenience can you attach a screenshot of the data plotted?
Yumeng Yin
Yumeng Yin 2022 年 3 月 3 日

サインインしてコメントする。

回答 (1 件)

David Hill
David Hill 2022 年 3 月 2 日
[fitcurve,gof]=fit(duration_fit,y_duration_fit,'fourier5');%fourier5 does not look too bad
  1 件のコメント
Yumeng Yin
Yumeng Yin 2022 年 3 月 3 日
Thanks a lot, David. That is another new idea for me to think about. But I need to use my own defined equation to fit it so that I could extract the parameter that I define. I am wondering if my setting is not complete and it leads to a bad fitting to my equation.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by