AUC for Pharmacokinetic Study

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.

 Accepted Answer

Arthur Goldsipe
Arthur Goldsipe on 26 Jun 2020
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 Comments

Thank you. I will check them out. I am trying to figure Simbiology out. Yet to find an example that matches data.
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?
@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?

Sign in to comment.

More Answers (0)

Communities

More Answers in the  SimBiology Community

Categories

Products

Release

R2020a

Community Treasure Hunt

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

Start Hunting!