Transform sum formula to then use it into a ODE solver
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
darova
il 29 Dic 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, ...)
Risposte (0)
Vedere anche
Categorie
Scopri di più su Ordinary Differential Equations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!