Can I generate MATLAB code for a PK simulation built with SimBiology APP?

1 回表示 (過去 30 日間)
Wei Wang
Wei Wang 2020 年 5 月 5 日
コメント済み: Wei Wang 2020 年 5 月 7 日
Hi, all
I have built a PBPK model with SimBiology APP and now I want to know its equivalent MATLAB code. Can I generate the code in SimBiology?
Thanks for comment.
  1 件のコメント
Wei Wang
Wei Wang 2020 年 5 月 5 日
to more specify it, I want to know the code of one PK simulation program using this model. How can I deal with it?

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

回答 (1 件)

Fulden Buyukozturk
Fulden Buyukozturk 2020 年 5 月 5 日
Hi Wei,
If you right-click on the program on Model Analyzer and choose View program code, this will open the code for the program. Switch to MATLAB and you'll see the code on your editor.
Hope this helps.
Fulden
  3 件のコメント
Fulden Buyukozturk
Fulden Buyukozturk 2020 年 5 月 6 日
編集済み: Fulden Buyukozturk 2020 年 5 月 6 日
Hi Wei,
In addition to the program code I mentioned above, when you build a model (for example when you create a dose) in the SimBiology App, you can view the equivalent MATLAB Code using the MATLAB Code Capture Tool. This will help capture the equivelant code needed for the dose schedule for example. Currently the best tools to generate MATLAB code for the modeling and simulation performed on the App is using the code capture tool and the program code i mentioned above.
For the doses question specifically, if you specified a dose schedule in the App, you can access those from the model in MATLAB. So you may not need to code the dose from scratch.
For example :
% Load model in SimBiology project
sbioloadproject('AntibacterialPKPD.sbproj', 'm1');
% Get the dose named 250 mg bid
myDose = getdose(m1, '250 mg bid')
% Change dose amount to 500
myDose.Amount = 500
% Simulate the model with the dose
data = sbiosimulate(m1, myDose)
% Plot results
sbioplot(data)
For more info on creating dose schedules programmatically, please see https://www.mathworks.com/help/simbio/ug/dose-object.html#buffx73
Fulden
Wei Wang
Wei Wang 2020 年 5 月 7 日
Hi, Fulden,
Thanks for your help. I now find it.
Wang Wei

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

コミュニティ

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

カテゴリ

Help Center および File ExchangeBiotech and Pharmaceutical についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by