Administer simultaneously different doses to different compartment in Simbiology

조회 수: 4 (최근 30일)
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!
Zinnia

채택된 답변

Jeremy Huard
Jeremy Huard 2021년 11월 3일
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
sbioplot(results);
set(gca, 'XLimitMethod','padded','YLimitMethod','padded');
grid on;
I hope it helps.
Best regards,
Jérémy
  댓글 수: 1
Zinnia Parra-Guillen
Zinnia Parra-Guillen 2021년 11월 4일
Thanks a lot Jérémy! I was wrongly including the dose objects between quotes in the sbiosimulate function, that was the problem.
Best,
Zinnia

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

추가 답변 (3개)

Syed Imran Ali shah
Syed Imran Ali shah 2021년 11월 5일
Modeling the Pharmacokinetic Effect of Phenobarbital on Neonates (using SimBiology Desktop)

Syed Imran Ali shah
Syed Imran Ali shah 2021년 11월 5일
Accessing PK library models from code

Syed Imran Ali shah
Syed Imran Ali shah 2021년 11월 18일
https://www.mathworks.com/matlabcentral/answers/428116-do-simfunctions-support-parameterized-dosing?s_tid=answers_rc1-1_p1_Topic

커뮤니티

더 많은 답변 보기:  SimBiology Community

카테고리

Help CenterFile Exchange에서 Perform Sensitivity Analysis에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by