CurveFitting given only derivative
古いコメントを表示
Hello Matlabbers,
I have given a derivative dF/dX = c*exp(F)+F
I also have an observation, F over x.
How can I curvefit the constant c so that the result would fit my observation dataset. I cannot put a derivate as model function in lsqcurvfit, right?
Thank you so much for your help!
Jan
2 件のコメント
Torsten
2018 年 6 月 14 日
What is dF in exp(dF) ? Does it mean "d*F" and d is known ?
Jaromir Slatan
2018 年 6 月 14 日
回答 (1 件)
Torsten
2018 年 6 月 14 日
0 投票
You don't need to put a derivative in lsqcurvefit since there is an analytical solution for your ODE from above:
https://www.wolframalpha.com/input/?i=y'(x)%3Dc*exp(y),y(a)%3Db
Best wishes
Torsten.
2 件のコメント
Jaromir Slatan
2018 年 6 月 14 日
Torsten
2018 年 6 月 14 日
Here is a worked-out example we always refer to if the simulated data for lsqcurvefit have to be obtained by numerically solving an ODE:
https://de.mathworks.com/matlabcentral/answers/43439-monod-kinetics-and-curve-fitting
Best wishes
Torsten.
カテゴリ
ヘルプ センター および File Exchange で Get Started with Curve Fitting Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!