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

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!

 Respuesta aceptada

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 comentarios

Do you have any idea about how can I improve the fitting?
SInce you accepted the answer, I assume you got my suggestion to work?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Productos

Versión

R2020a

Preguntada:

el 19 de Mayo de 2023

Editada:

el 20 de Mayo de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by