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
Torsten 2018년 6월 14일
What is dF in exp(dF) ? Does it mean "d*F" and d is known ?
Jaromir Slatan
Jaromir Slatan 2018년 6월 14일
I edited the function, it is only F

댓글을 달려면 로그인하십시오.

답변 (1개)

Torsten
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
Jaromir Slatan 2018년 6월 14일
Hello, thank you Torsten! And what can I do if the function also contains a "+F"?
Torsten
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에 대해 자세히 알아보기

질문:

2018년 6월 14일

댓글:

2018년 6월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by