Effacer les filtres
Effacer les filtres

Optimization: find model parameters comparing with experimental data

3 vues (au cours des 30 derniers jours)
Italo
Italo le 1 Mar 2016
Hi, I have a model (*.m) written in Matlab with several parameters. I would like to find the optimal parameters that will give me the minimum error compared to the experimental data.
Basically, I have to minimize this function (let's call it "error"):
error=|mymodel(a,b,c,d....)-expData|
"mymodel" and "expData" are just 1-D arrays. Actually they are 2-D arrays (let's call the columns "x"and "y") but I have done an interpolation of the most dense array ("mymodel" in this case), so that the I get the value of "y" for the 2 arrays at the same value of "x".
How can I do that? I have seen many tutorials but I don't quite understand. I have to make a function and use the optimization toolbox on that function, but how I can define the parameters to change?
Thank you

Réponses (1)

Torsten
Torsten le 1 Mar 2016
Reading the description of lsqcurvefit should help:
Best wishes
Torsten.

Catégories

En savoir plus sur Nonlinear Optimization dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by