Accessing PK library models from code
Mostrar comentarios más antiguos
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
Respuestas (1)
Rick Paxson
el 12 de Nov. de 2020
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 comentario
Abed Alnaif
el 14 de Nov. de 2020
Comunidades de usuarios
Más respuestas en SimBiology Community
Categorías
Más información sobre Extend Modeling Environment en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!