Products
Array of reaction products
Description
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
.
Characteristics
Applies to | Object: reaction |
Data type | Array of objects |
Data values | Species objects. Default is [] (empty). |
Access | Read-only |
Examples
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