addreaction
Create reaction object and add to model
Syntax
Description
rxnObj = addreaction(modelObj,rxnEquation)SimBiology.Reaction object
          rxnObj. The function also assigns 
- rxnEquationto the- Reactionproperty of- rxnObj.
- Reactant species to the - Reactantsproperty of- rxnObj.
- Product species to the - Productsproperty of- rxnObj.
- modelObjto the- Parentproperty of- rxnObj.
- rxnObjto the- Reactionsproperty of- modelObj.
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.
rxnObj = addreaction(modelObj,reactantNames,productNames)
rxnObj = addreaction(modelObj,reactantNames,RStoichCoefficients,productNames,PStoichCoefficients)Stoichiometry property of rxnObj.
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