| Contents | Index |
setspecies(kineticlawObj, 'SpeciesVariablesValue',
'SpeciesVariableNamesValue')
| SpeciesVariablesValue | Specify the species variable in the kinetic law object. |
| SpeciesVariableNamesValue | Specify the species name with which to configure the species variable in the kinetic law object. Determines the species in the ReactionRate equation. |
setspecies configures the kinetic law object SpeciesVariableNames property.
setspecies(kineticlawObj, 'SpeciesVariablesValue', 'SpeciesVariableNamesValue') configures the SpeciesVariableNames property of the kinetic law object, kineticlawObj. SpeciesVariablesValue corresponds to one of the strings in the SpeciesVariables property of kineticlawObj. The corresponding element in kineticlawObj SpeciesVariableNames property is configured to SpeciesVariableNamesValue.
For example, if SpeciesVariables are {'S', 'S1'} and SpeciesVariablesValue is specified as S1, the first element of the SpeciesVariableNames cell array is configured to SpeciesVariableNamesValue.
Create a model, add a reaction, and assign the SpeciesVariableNames for the reaction rate equation.
Create the 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');reactionObj KineticLaw property is configured to kineticlawObj.
The 'Henri-Michaelis-Menten' kinetic law has one species variable (S) that should be set. To set this variable:
setspecies(kineticlawObj,'S', 'a');
Verify that the species variable is correct.
get (kineticlawObj, 'SpeciesVariableNames')MATLAB returns:
ans = 'a'
addparameter, getspecies, setparameter

See how to analyze, visualize, and model biological data and systems using MathWorks products.
Get free kit| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |