I have three supplements that I would like to compare (bioavailability). For each of the three, we will have whole bood, serum, and urine measurements done at timed intervals in a day. Supplements will be given orally and it will be a single dose (three different days for each).
I am exploring the best way to calculate area under the curve using trapezoidal rule, finding tmax, and cmax. I have explored Simbiology and the examples I have seen are far more complex than what I need. I will appreciate any help on getting this done. Thank you.

 Réponse acceptée

Arthur Goldsipe
Arthur Goldsipe le 26 Juin 2020

1 vote

The simplest way to calculate AUC in MATLAB using the trapezoidal rule is probably to use the function trapz. Within SimBiology, these sorts of caculations are usually done as part of non-compartmental analysis. Would one of those approaches work for you?

3 commentaires

Velarie Ansu
Velarie Ansu le 26 Juin 2020
Thank you. I will check them out. I am trying to figure Simbiology out. Yet to find an example that matches data.
Elham
Elham le 3 Jan 2025
I am using SimBiology to calculate the area under the curve (AUC). When I define this calculation as an observable, the result is NaN. However, when I extract the data from the SimData object and calculate the AUC outside simbiology (e.g., trapz), I get valid results. Could you help me understand why this happens and how I can correctly calculate the AUC as an observable within SimBiology?
Jeremy Huard
Jeremy Huard le 3 Jan 2025
@Elham Can you share how the observable is defined?
Also, did you define it in the model itself or did you add the observable to the SimData object?

Connectez-vous pour commenter.

Plus de réponses (0)

Communautés

Plus de réponses dans  SimBiology Community

Catégories

En savoir plus sur Extend Modeling Environment dans Centre d'aide et File Exchange

Produits

Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by