dosage_ode


dosage_ode, a MATLAB code which sets up and solves a system of ordinary differential equations (ODE) to simulate the blood levels of a medicinal drug that should stay between medicinal and toxic limits.

The drug level can be modeled by a set of first-order linear differential equations. If we define:

  A = medicine_in_intestines,
  B = plasma_level.  
then the governing differential equations are:
  dA/dt = - absorption_rate * A + intake
  dB/dt = - excretion_rate  * B + absorption_rate * A

Licensing:

The computer code and data files described and made available on this web page are distributed under the MIT license

Languages:

dosage_ode is available in a MATLAB version and an Octave version and a Python version.

Related Data and Programs:

dosage_ode_test

matlab_ode, MATLAB codes which set up various ordinary differential equations (ODE).

Reference:

  1. Soraya Dhillon, Andrzej Kostrzewski,
    Clinical Pharmacokinetics,
    Pharamceutical Press, 2006,
    ISBN: 978-0-85369-571-4.

Source Code:


Last revised on 28 October 2020.