MATLAB Answers

How can I find 4 constants values from and indirect fitting value?

1 view (last 30 days)
Elena Alicia Robles Molina
Commented: Arthur Goldsipe on 30 Apr 2020
Hello!
I hope I could get some help with an issue, I have an ODE system of 7 equations with 4 parameters which I would like to have modified to find the best fit to my experimental value. Nevertheless I cant seem to direct the function to modify the k values.

Answers (1)

Arthur Goldsipe
Arthur Goldsipe on 29 Apr 2020
I see that the SimBiology product is tagged for this post, but the attached files are not using SimBiology. I'm one of the developers of SimBiology, and we try to make it easy to solve this exact sort of problem in SimBiology, so that you can focus on the modeling and analysis. If you want to learn how to translate this problem into SimBiology, let me know.
But it looks like you want to use lsqcurvefit for fitting, with your ODE model solved using ode45. To do that, you will need to construct your model function in the form that lsqcurvefit expects, as described here. Anonymous functions are often helpful for this. But you situation is a little too complicated to use anonymous functions alone. So, I wrote a helper function that solves the ODEs and calculates yield. See the attached upated files for my solution to your problem.
  3 Comments
Arthur Goldsipe
Arthur Goldsipe on 30 Apr 2020
I would start with the Getting Started Guide. :-) And here's an example of using SimBiology for parameter estimation.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!