get reaction rates out of SimBiology
Unfortunately, SimBiology does not give you the rates of your reactions at all. However, in order to run, SimBiology does calculate the rates. rateout.m records all rates while you're simulating.
This little tool needs to be incorporated as two simple rules in your model (the first as initialAssignment, the second as rate).
temp = rateout(-1)
temp = rateout(time)
This way the model saves the rates for all reactions in each simulation step in a global variable. Calling rateout.m from your workspace sorts through the intermediates and assigns all rates in your workspace (next to t and x, which SimBiology puts there anyway).
Detailed instructions are in the file itself.
Cite As
Frank Sommerhage (2024). get reaction rates out of SimBiology (https://www.mathworks.com/matlabcentral/fileexchange/32961-get-reaction-rates-out-of-simbiology), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Communities
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |