setparameter (kineticlaw)
Specify specific parameters in kinetic law object
Syntax
setparameter(
kineticlawObj
,
'ParameterVariablesValue', 'ParameterVariableNamesValue')
Arguments
| Specify the value of the parameter variable in the kinetic law object. |
| Specify the parameter name with which to configure the parameter
variable in the kinetic law object. Determines parameters in the ReactionRate equation. |
Description
Configure ParameterVariableNames
in the kinetic
law object.
setparameter(
configures
the kineticlawObj
,
'ParameterVariablesValue', 'ParameterVariableNamesValue')ParameterVariableNames
property of the kinetic
law object (kineticlawObj
). ParameterVariableValue
corresponds
to one of the character vectors in kineticlawObj
ParameterVariables
property.
The corresponding element in the kineticlawObj
ParameterVariableNames
property
is configured to ParameterVariableNamesValue
. For
example, if ParameterVariables
is {'Vm',
'Km'}
and ParameterVariablesValue
is
specified as Vm
, then the first element of the ParameterVariableNames
cell
array is configured to ParameterVariableNamesValue
.
Examples
Create a model, add a reaction, and then assign the ParameterVariableNames
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 tokineticlawObj
.The
'Henri-Michaelis-Menten'
kinetic law has two parameter variables (Vm
andKm
) that should be set. To set these variables:setparameter(kineticlawObj,'Vm', 'Va'); setparameter(kineticlawObj,'Km', 'Ka');
Verify that the parameter variables are correct.
get (kineticlawObj, 'ParameterVariableNames')
MATLAB® returns:
ans = 'Va' 'Ka'
See Also
Version History
Introduced in R2006a