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일

0 개 추천

[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.

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

카테고리

도움말 센터File Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기

태그

질문:

2022년 3월 2일

편집:

2022년 3월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by