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.
But this bunch of code is simpler than what I expect. For example, the dose scheme is represented by argument doseStruct, but I don't know how to code my dose scheme, because it is little complicated. Can I find more intact code of my simulation?
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.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
1 Comment
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/523077-can-i-generate-matlab-code-for-a-pk-simulation-built-with-simbiology-app#comment_841341
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/523077-can-i-generate-matlab-code-for-a-pk-simulation-built-with-simbiology-app#comment_841341
Sign in to comment.