Fitting the curve problem

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 comentarios

Image Analyst
Image Analyst el 3 de Mzo. de 2022
For our convenience can you attach a screenshot of the data plotted?
Yumeng Yin
Yumeng Yin el 3 de Mzo. de 2022

Iniciar sesión para comentar.

Respuestas (1)

David Hill
David Hill el 2 de Mzo. de 2022

0 votos

[fitcurve,gof]=fit(duration_fit,y_duration_fit,'fourier5');%fourier5 does not look too bad

1 comentario

Yumeng Yin
Yumeng Yin el 3 de Mzo. de 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.

Iniciar sesión para comentar.

Categorías

Más información sobre Get Started with Curve Fitting Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 2 de Mzo. de 2022

Editada:

el 10 de Mzo. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by