addreaction
Create reaction object and add to model
Syntax
Description
creates and returns a rxnObj
= addreaction(modelObj
,rxnEquation
)SimBiology.Reaction
object
rxnObj
. The function also assigns
rxnEquation
to theReaction
property ofrxnObj
.Reactant species to the
Reactants
property ofrxnObj
.Product species to the
Products
property ofrxnObj
.modelObj
to theParent
property ofrxnObj
.rxnObj
to theReactions
property ofmodelObj
.
Note
If there are multiple compartments in your model, you need to qualify the species names with a compartment name. If you qualify any species name with a compartment name, then you must qualify every species with the corresponding compartment name. For details, see Add Reactions to SimBiology Model.
If you use
addreaction
to create a reaction rate expression that is not continuous and differentiable, see Using Events to Address Discontinuities in Rule and Reaction Rate Expressions before simulating your model.
specifies the reactant species and product species. By default, the stoichiometric values
are set to 1.rxnObj
= addreaction(modelObj
,reactantNames
,productNames
)
also specifies the stoichiometric coefficients for reactants and products and sets the
rxnObj
= addreaction(modelObj
,reactantNames
,RStoichCoefficients
,productNames
,PStoichCoefficients
)Stoichiometry
property of rxnObj
.
also sets the properties of rxnObj
= addreaction(___,Name=Value
)rxnObj
using one or more name-value
arguments. Name
is the property name and Value
is the
corresponding value.
Examples
Input Arguments
More About
Version History
Introduced in R2006aSee Also
model object
| addkineticlaw
| addproduct
| addreactant
| rmproduct
| rmreactant