Accessing PK library models from code

5 ビュー (過去 30 日間)
Abed Alnaif
Abed Alnaif 2020 年 11 月 12 日
コメント済み: Abed Alnaif 2020 年 11 月 14 日
Hello,
Is there a way to access models from the PK library from code? I see there's a PKModelDesign class, but I'm wondering if there's a way for me to access one of the pre-built PK models from code. I'm using R2020b.
Thank you,
Abed

回答 (1 件)

Rick Paxson
Rick Paxson 2020 年 11 月 12 日
Hello,
Yes you can use PKModelDesign to construct simple PK models from the command line (i.e. in code).
I'll refer you to the documentation for the details and all the options available but here is a simple example.
pkm = PKModelDesign;
pkm.addCompartment('Central', 'DosingType', 'Bolus', ...
'EliminationType', 'linear-clearance', ...
'HasResponseVariable', true);
modelObj = pkm.construct;
This will make a one compartment model with linear elimination and parameterized with clearance (i.e. a clearance parameter is built).
Hope this answers your question.
  1 件のコメント
Abed Alnaif
Abed Alnaif 2020 年 11 月 14 日
Hi Pax, Thanks. One question: my understanding is that, if I used models from the built in library, SimBiology runs the model using the analytical solution, rather than running it numerically. Is this also true if I use PKModelDesign, that the model runs using the analytical solution? I was just curious. Thanks, Abed

サインインしてコメントする。

コミュニティ

その他の回答  SimBiology コミュニティ

カテゴリ

Help Center および File ExchangeExtend Modeling Environment についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by