How to run sbproj using sbiosimulate with a selected dose in SimBiology?

2 ビュー (過去 30 日間)
emjey
emjey 2019 年 10 月 24 日
回答済み: emjey 2019 年 10 月 24 日
Consider the predefiend doses '250 mg bid', '250 mg tid', etc. in the model AntibacterialPKPD.sbproj, see screenshot
dose.png
I am unable to load selected doses, e.g. only '250 mg bid', so far I tried this
clear variables
modelName = 'AntibacterialPKPD.sbproj';
sbioloadproject(modelName,'m1')
[time,x,names] = sbiosimulate(m1,[],[],'250 mg bid')
but get error
>> testAnt
Error using sbiosimulate (line 136)
Expected input number 4, DOBJ, to be one of these types:
SimBiology.Dose
Error in testAnt (line 5)
[time,x,names] = sbiosimulate(m1,[],[],'250 mg bid')
Any comments would be very appreciated!

回答 (1 件)

emjey
emjey 2019 年 10 月 24 日
OK, I found it out, I was missing the dose object
modelName = 'AntibacterialPKPD.sbproj';
sbioloadproject(modelName,'m1')
d1 = getdose(m1, '250 mg bid')
[time,x,names] = sbiosimulate(m1,[],[],d1)
plot(time,x(:,1));

コミュニティ

その他の回答  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