MATLAB: Fitting the numerical solution of a PDE with one parameter to some data

curve fittingMATLAB

I need to fit the numerical solution of a PDE with one parameter to some data in MATLAB.
I already solved the PDE (by giving an arbitrary value to the parameter) and I have the data, but I am not sure if I can use nlinfit, since it requires an analytic function as input.
Another issue is how to pass the parameter to be fitted to pdepe to solve the PDE.

Best Answer

https://de.mathworks.com/matlabcentral/answers/43439-monod-kinetics-and-curve-fitting
The procedure can easily be adapted to work with a PDE instead of ODEs.
Best wishes
Torsten.