Species coefficients in reaction
Stoichiometry property specifies the
species coefficients in a reaction. Enter an array of
the stoichiometry of reactants (negative value) and products (positive
value). Example: [-1 -1 2].
double specified cannot be
The reactants of the reaction are defined with a negative number.
The products of the reaction are defined with a positive number. For
example, the reaction 3 H + A-> 2 C + F has the
of [-3 -1 2 1].
When this property is configured, the
updates accordingly. In the above example, if the
was set to [-2 -1 2 3], the reaction is updated to 2H + A -> 2C
The length of the
Stoichiometry array is
the sum of the
Reactants array and the
To remove a product or reactant from a reaction, use the
Add a product or reactant and set stoichiometry with methods
ODE solvers support
values such as
0.5. Stochastic solvers and dimensional
analysis currently support only integers in
therefore you must balance the reaction equation and specify integer
values for these two cases.
A -> null has a stoichiometry value of
-> B has a stoichiometry value of
|Applies to||Object: reaction|
|Data type||Double array|
|Data values||1-by-n double, where n is length (products) + length (reactants). Default is [ ] (empty).|
Create a reaction object.
modelObj = sbiomodel('cell'); reactionObj = addreaction(modelObj, '2 a + 3 b -> d + 2 c');
ans = -2 -3 1 2
Set stoichiometry to
[-1 -2 2 2].
set (reactionObj, 'Stoichiometry', [-1 -2 2 2]); get (reactionObj, 'Stoichiometry')
ans = -1 -2 2 2
Reactionproperty updates automatically.
get (reactionObj, 'Reaction')
ans = a + 2 b -> 2 d + 2 c