MATLAB Answers

Nonlinear least-squares fitting of curve described by PDEs

9 views (last 30 days)
Xen
Xen on 20 Jul 2017
Edited: Torsten on 21 Jul 2017
Hi people. I would like to fit a curve described by a system of two 2nd degree partial differential equations (PDEs) using lsqnonlin. While it is simple to write your anonymous function when you have a single equation for your model, how can you do it when you have a system of PDEs, which do not have an analytic solution for the parameter of interest (the one to be fitted on the experimental data)? The PDEs have a number of free variables for which I would like to get the values that best fit the data. I could also try a better method than lsqnonlin, if there is one. Thanks

Answers (1)

Torsten
Torsten on 20 Jul 2017
Although the description here is for ODEs, it can easily be adopted for PDEs:
https://de.mathworks.com/matlabcentral/answers/43439-monod-kinetics-and-curve-fitting
Best wishes
Torsten.
  4 Comments
Torsten
Torsten on 21 Jul 2017
The "Anonymous Function" approach is the most flexible way to pass extra parameters to the PDE functions:
https://de.mathworks.com/help/optim/ug/passing-extra-parameters.html
Best wishes
Torsten.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by