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.

 채택된 답변

Arthur Goldsipe
Arthur Goldsipe 2020년 6월 26일

1 개 추천

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

Velarie Ansu
Velarie Ansu 2020년 6월 26일
Thank you. I will check them out. I am trying to figure Simbiology out. Yet to find an example that matches data.
Elham
Elham 2025년 1월 3일
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 2025년 1월 3일
@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?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

커뮤니티

더 많은 답변 보기:  SimBiology Community

카테고리

도움말 센터File Exchange에서 Extend Modeling Environment에 대해 자세히 알아보기

제품

릴리스

R2020a

질문:

2020년 6월 25일

댓글:

2025년 1월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by