Array of parameter objects
The Parameters
property indicates the parameters
in a Model
or KineticLaw
object.
Read-only array of Parameter
objects.
The scope of a parameter object is hierarchical and is defined by the parameter’s parent. If a parameter is defined with a kinetic law object as its parent, then only the kinetic law object can use the parameter. If a parameter object is defined with a model object as its parent, then components such as rules, events, and kinetic laws (reaction rate equations) can use the parameter.
You can add a parameter to a model object, or kinetic law object
with the method addparameter
and
delete it with the method delete
.
You can view parameter object properties with the get
command and configure properties
with the set
command.
Applies to | Objects: model , kineticlaw |
Data type | Array of parameter objects |
Data values | Parameter objects. Default value is [] (empty). |
Access | Read-only |
Create a model object, and then add a reaction object.
modelObj = sbiomodel ('my_model'); reactionObj = addreaction (modelObj, 'a + b -> c + d');
Define a kinetic law for the reaction object.
kineticlawObj = addkineticlaw(reactionObj, 'MassAction');
Add a parameter and assign it to the kinetic law object (kineticlawObj);
.
parameterObj1 = addparameter (kineticlawObj, 'K1'); get (kineticlawObj, 'Parameters')
SimBiology Parameter Array Index: Name: Value: ValueUnits: 1 K1 1
Add a parameter and assign it to the model object
(modelObj
).
parameterObj1 = addparameter(modelObj, 'K2'); get(modelObj, 'Parameters') SimBiology Parameter Array Index: Name: Value: ValueUnits: 1 K2 1
addparameter
, delete
, get
, set