Restricting output times when calling simfunctions

1 回表示 (過去 30 日間)
Abed Alnaif
Abed Alnaif 2019 年 12 月 6 日
コメント済み: Abed Alnaif 2019 年 12 月 6 日
Hello,
I'm having a hard time restricting output times when calling simfunctions. Is there a way to do this? I thought that the 't_output' argument would do this, but it appears that this argument only specifies certain output times that should be included (see example below). Is there a way to restrict the output times to only certain specified times?
Thank you,
Abed
sbioloadproject('insulindemo', 'm1');
normSim = createSimFunction(m1,{},{'[Plasma Glu Conc]','[Plasma Ins Conc]'},'Dose');
singleMeal = sbioselect(m1,'Name','Single Meal');
mealTable = getTable(singleMeal);
tOutput = 23.99;
tStop = 24;
simData = normSim([],tStop,mealTable,tOutput);
simData.Time % can we restrict output times to only 23.99?

採用された回答

Arthur Goldsipe
Arthur Goldsipe 2019 年 12 月 6 日
Yes, if you use tStop = [], then only results at tOutput will be reported.
  1 件のコメント
Abed Alnaif
Abed Alnaif 2019 年 12 月 6 日
Great, that works. Thanks, Arthur!

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

その他の回答 (0 件)

コミュニティ

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

カテゴリ

Help Center および File ExchangeSimulate Responses to Biological Variability and Doses についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by