| Contents | Index |
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 function set.
| Applies to | Object: reaction |
| Data type | Array of objects |
| Data values | Species objects. Default is [] (empty). |
| Access | Read-only |
Create a model object.
modelObj = sbiomodel ('my_model');Add reaction objects.
reactionObj = addreaction (modelObj, 'a + b -> c + d');Verify the assignment.
productsObj = get(reactionObj, 'Products')MATLAB returns:
SimBiology Species Array Index: Compartment: Name: InitialAmount: InitialAmountUnits: 1 unnamed c 0 2 unnamed d 0
addkineticlaw, addproduct, addspecies, rmproduct

See how to analyze, visualize, and model biological data and systems using MathWorks products.
Get free kit| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |