Clear Filters
Clear Filters

Transform sum formula to then use it into a ODE solver

1 view (last 30 days)
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
hna
hna on 29 Dec 2019
So bascially here I am looking at the volume of tumor over a period of time which is my differential equation dv/dt.
Caa or X(t) in the dv/dt equation is the concentration of drug in the body.
ka: drug absorption variable by the gut
k: drug elimination variable
Dm: Drug dose
Tadm: time at which the drug is administrated.
Here I have a set of data that I want to fit using this model where the drug is administrated every day for a period of 22 days.
darova
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, ...)

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!