Borrar filtros
Borrar filtros

Administer simultaneously different doses to different compartment in Simbiology

5 visualizaciones (últimos 30 días)
Is it possible to administer two different dose objects (each one one to a different compartment) simultaneously using sbiosimulate in Simbiology? Or do I need to create a simulation scenario combining them. If so, could you share some code?
Thanks a lot!

Respuesta aceptada

Jeremy Huard
Jeremy Huard el 3 de Nov. de 2021
Hi Zinnia,
yes, you can administer different doses with different targets at the same time during a simulation. You can do this with sbiosimulate or a SimFunction.
Here is an example with sbiosimulate:
% Create a two compartment model
pkm = PKModelDesign;
pkc= addCompartment(pkm, 'Central', 'DosingType', 'Bolus', ...
'EliminationType', 'linear-clearance', ...
'HasResponseVariable', true);
pkp = addCompartment(pkm, 'Peripheral', 'DosingType', 'Bolus', ...
'EliminationType', 'linear-clearance');
modelObj = pkm.construct;
% Create dose
dC = adddose(modelObj,'DoseC');
dC.Amount = 10;
dC.TargetName = 'Central.Drug_Central';
dP = adddose(modelObj,'DoseP');
dP.Amount = 20;
dP.TargetName = 'Peripheral.Drug_Peripheral';
dP.Interval = 5;
dP.RepeatCount = 1;
% Run Simulation
results = sbiosimulate(modelObj,[dC,dP]);
% Plot result
set(gca, 'XLimitMethod','padded','YLimitMethod','padded');
grid on;
I hope it helps.
Best regards,
  1 comentario
Zinnia Parra-Guillen
Zinnia Parra-Guillen el 4 de Nov. de 2021
Thanks a lot Jérémy! I was wrongly including the dose objects between quotes in the sbiosimulate function, that was the problem.

Iniciar sesión para comentar.

Más respuestas (3)

Syed Imran Ali shah
Syed Imran Ali shah el 5 de Nov. de 2021
Modeling the Pharmacokinetic Effect of Phenobarbital on Neonates (using SimBiology Desktop)

Syed Imran Ali shah
Syed Imran Ali shah el 5 de Nov. de 2021
Accessing PK library models from code

Syed Imran Ali shah
Syed Imran Ali shah el 18 de Nov. de 2021

Comunidades de usuarios

Más respuestas en  SimBiology Community


Más información sobre Simulate Responses to Biological Variability and Doses en Help Center y File Exchange.




Community Treasure Hunt

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

Start Hunting!

Translated by