getparameters
Get specific parameters in kinetic law object
Syntax
parameterObj =
getparameters(kineticlawObj)
parameterObj =
getparameters(kineticlawObj, ParameterVariablesValue)
Arguments
| Retrieve parameters used by the kinetic law object. |
| Retrieve parameters used by the kinetic law object corresponding to the
specified parameter in the ParameterVariables property of the
kinetic law object. Specify a character vector, string scalar, string vector, or
cell array of character vectors. |
Description
returns the parameters used
by the kinetic law object parameterObj =
getparameters(kineticlawObj)kineticlawObj to parameterObj.
returns the parameter in the parameterObj =
getparameters(kineticlawObj, ParameterVariablesValue)ParameterVariableNames property that
corresponds to the parameter specified in the ParameterVariables property
of kineticlawObj, to parameterObj.
ParameterVariablesValue is the name of the parameter as it appears in the
ParameterVariables property of kineticlawObj.
ParameterVariablesValue can be a character vector, string scalar, string
vector, or cell array of character vectors.
If you change the name of a parameter, you must configure all applicable elements such as
rules that use the parameter, any user-specified ReactionRate, or the
kinetic law object property ParameterVariableNames. Use the method
setparameter to configure ParameterVariableNames.
Examples
Create a model, add a reaction, and 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');Add two parameter objects.
parameterObj1 = addparameter(kineticlawObj,'Va'); parameterObj2 = addparameter(kineticlawObj,'Ka');
The
'Henri-Michaelis-Menten'kinetic law has two parameter variables (VmandKm) that should to be set. To set these variables:setparameter(kineticlawObj,'Vm', 'Va'); setparameter(kineticlawObj,'Km', 'Ka');
To retrieve a parameter variable:
parameterObj3 = getparameters(kineticlawObj, 'Vm')MATLAB returns:
SimBiology Parameter Array Index: Name: Value: ValueUnits: 1 Va 1
parameterObj4 = getparameters (kineticlawObj, 'Km')
See Also
Version History
Introduced in R2006a