Reactants
Array of reaction reactants
Description
The Reactants
property is a 1-by-n
species
object array of reactants in the reaction. If the Reaction
property
is modified to use a different reactant, the Reactants
property
will be updated accordingly.
You can add reactant species to the reaction with the addreactant
method.
You can remove reactant species from the reaction with the rmreactant method
.
You can also update reactants by setting the Reaction
property
with the function set
.
Characteristics
Applies to | Object: reaction |
Data type | Species object or array of species 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');
View the reactants for
reactionObj
.get(reactionObj, 'Reactants')
MATLAB® returns:
SimBiology Species Array Index: Compartment: Name: InitialAmount: InitialAmountUnits: 1 unnamed a 0 2 unnamed b 0