
Transform sum formula to then use it into a ODE solver
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
darova
le 29 Déc 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, ...)
Réponses (0)
Voir également
Catégories
En savoir plus sur Ordinary Differential Equations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!