Optimization to fit a curve to data (problem with the InitialPopulationMatrix)

조회 수: 2 (최근 30일)
I am triying to fit the eclosed data using optimoptions, and for that I used the gradient descent.
This is the objective function, but in case someone has better idea would be great!
x = 1:size(Data,2);
I think I have to add the 'InitialPopulationMatrix' but I didn't know how to add it
I would appreciate any help & Thanks!

채택된 답변

Matt J
Matt J 2023년 5월 19일
Instead of
x = 1:size(Data,2);
perhaps try a more normalized range of x, e.g.,
x=linspace(0,1,size(Data,2))
  댓글 수: 2
Hidd_1
Hidd_1 2023년 5월 19일
Do you have any idea about how can I improve the fitting?
Matt J
Matt J 2023년 5월 19일
SInce you accepted the answer, I assume you got my suggestion to work?

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by