Specify species and parameter interactions
Rule property contains a rule that defines
how certain species and parameters should interact with one another.
For example, a rule could state that the total number of species
B must be some value.
a MATLAB® expression that defines the change in the species object
quantity or a parameter object
Value when the rule is evaluated.
If you set the
Rule property for an algebraic
rule, rate rule, or repeated assignment rule, and the rule expression
is not continuous and differentiable, see Using Events to Address Discontinuities in Rule and Reaction Rate Expressions before
simulating your model.
|Applies to||Object: rule|
|Data type||Character vector|
|Data values||Character vector defined as species or parameter objects. Default
is an empty character vector |
Create a model object, and then add a reaction object.
modelObj = sbiomodel ('my_model'); reactionObj = addreaction (modelObj, 'a + b -> c + d');
Add a rule.
ruleObj = addrule(modelObj, '10-a+b')
SimBiology Rule Array Index: RuleType: Rule: 1 algebraic 10-a+b