| SimBiology® | ![]() |
The Products property contains an array of SimBiology.Species objects.
Products is a 1-by-n species object array that indicates the species that are changed by the reaction. If the Reaction property is modified to use a different species, the Products property is updated accordingly.
You can add product species to the reaction with addproduct function. You can remove product species from the reaction with rmproduct. You can also update reaction products by setting the Reaction property with the functionset.
| Applies to | Object: reaction |
| Data type | Array of objects |
| Data values | Species objects. Default is []. |
| Access | Read-only |
Create a model object
modelObj = sbiomodel ('my_model');Add reaction objects
reactionObj = addreaction (modelObj, 'a + b -> c + d');
Verify assignment.
productsObj = get(reactionObj, 'Products')
MATLAB® returns
SimBiology Species Array Index: Compartment: Name: InitialAmount: InitialAmountUnits: 1 unnamed c 0 2 unnamed d 0
addkineticlaw, addspecies, addproduct, rmproduct
![]() | Parent | RandomState | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |