
Transform sum formula to then use it into a ODE solver
3 views (last 30 days)
Show older comments
Hello,
I am trying to resolve a differential equation with some data that I've got. However I don't know how to translate this equation into a matlab code. At the moment I am working on the first file of my program which is the one where I will desribe my diffrential equation. I will later create other files to use the present function into an ODE solver.
So my differential equation is: dV/dt = (alpha - beta * cAA(t)) * V(t)
I have attached a picture with the formula of cAA that i don't now how to incorporate into my differential equation formula. In this equation
Dm, ka and k are known as well as t and Tadm.
I have attached my matlab code, of course at the minute it is not complete as I am stuck.
Thanks in advance,
3 Comments
darova
on 29 Dec 2019
Try
ka = ; %known
k = ; %known
Tadm = ; %known
t = ; %known
Caa = @(t) D*(ka/(ka-k)*(exp(-ka(t-Tadm)))
F = @(t,v) alpha-beta*Caa(t)*v;
[t,v] = ode45(F, ...)
Answers (0)
See Also
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!