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
rxnEquationto theReactionproperty ofrxnObj.Reactant species to the
Reactantsproperty ofrxnObj.Product species to the
Productsproperty ofrxnObj.modelObjto theParentproperty ofrxnObj.rxnObjto theReactionsproperty 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
addreactionto 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