Filter löschen
Filter löschen

Fitting the curve problem

1 Ansicht (letzte 30 Tage)
Yumeng Yin
Yumeng Yin am 2 Mär. 2022
Bearbeitet: Yumeng Yin am 10 Mär. 2022
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 Kommentare
Image Analyst
Image Analyst am 3 Mär. 2022
For our convenience can you attach a screenshot of the data plotted?
Yumeng Yin
Yumeng Yin am 3 Mär. 2022

Melden Sie sich an, um zu kommentieren.

Antworten (1)

David Hill
David Hill am 2 Mär. 2022
[fitcurve,gof]=fit(duration_fit,y_duration_fit,'fourier5');%fourier5 does not look too bad
  1 Kommentar
Yumeng Yin
Yumeng Yin am 3 Mär. 2022
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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Interpolation finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by