| SimBiology® | ![]() |
The SpeciesVariableNames property shows the species used by the kinetic law object to determine the ReactionRate equation in the reaction object. Use setspecies to assign SpeciesVariableNames. When you assign species to SpeciesVariableNames, SimBiology maps these species names to SpeciesVariables in the kinetic law object.
The ReactionRate property of a reaction object shows the result of a mapping from an abstract kinetic law. The ReactionRate is determined by the kinetic law object Expression property by mapping ParameterVariableNames to ParameterVariables and SpeciesVariableNames to SpeciesVariables.
| Applies to | Object: kinetic law |
| Data type | Cell array of strings |
| Data values | Cell array of species names |
| Access | Read/Write |
Create a model, add a reaction, and assign the SpeciesVariableNames for the reaction rate equation.
Create a model object, and then add a reaction object.
modelObj = sbiomodel('my_model');
reactionObj = addreaction(modelObj, 'a -> c + d');Create a kinetic law object for the reaction object, of the type 'Henri-Michaelis-Menten'
kineticlawObj = addkineticlaw(reactionObj, 'Henri-Michaelis-Menten');
The reactionObj KineticLaw property is configured to kineticlawObj.
The 'Henri-Michaelis-Menten' kinetic law has one species variable (S) that you should set. To set this variable,
setspecies(kineticlawObj,'S', 'a');
Verify that the species variable is correct.
get (kineticlawObj, 'SpeciesVariableNames')
MATLAB® returns
ans = 'a'
Reaction object property: ReactionRate
Abstract kinetic law object and kinetic law object properties: Expression, SpeciesVariables, ParameterVariables
Kinetic law object property: ParameterVariableNames
Method: setparameter
![]() | SpeciesOutputs | SpeciesVariables | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |