Finding best parametric function estimation for ODE of first order
Show older comments
Hello to every one.
Until now I've solved differential equations numerically under given formulae for their coefficients and given initial / boundary conditions. But recently I've been dealt with the inverse problem, namely: find the best fit to the solution of the ODE regarding some unknown paramateres. The hard part here is due to the fact that we need to determine not a single value but the values of a whole parametric function.
Consider the following initial value problem for ODE of first order:

Solving the equation by separation of the variables we obtain the exact solution 

Let's consider however this problem statement: given the Cauchy's problem

whose solution
is known over the grid
Find the estimated values of the function
fitting the solution
, i.e. establish that they're eventually located close enough to the curve
.
.I read a lot about the topic but I didn't find what I searched for. Could you give me some short explanations or guidelines on how to perform this idea in general and later using MATLAB toolboxes?
Kind regards,
Lyudmil Yovkov, PhD
Accepted Answer
More Answers (2)
Alan Stevens
on 18 Jul 2021
1 vote
First plot the points, ui vs xi to see what sort of curve it might be. If it looks like it could be a polynomial (as in the case of u = x^2 + 1) then lookup help on polyfit.
1 Comment
Lyudmil Yovkov
on 18 Jul 2021
Edited: Lyudmil Yovkov
on 18 Jul 2021
Lyudmil Yovkov
on 28 Jul 2021
Edited: Lyudmil Yovkov
on 28 Jul 2021
0 votes
1 Comment
Lyudmil Yovkov
on 31 Jul 2021
Edited: Lyudmil Yovkov
on 31 Jul 2021
Categories
Find more on Ordinary Differential Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!










