Parameters

Array of parameter objects

Description

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.

Characteristics

Applies toObjects: model, kineticlaw
Data typeArray of parameter objects
Data valuesParameter objects. Default value is [] (empty).
AccessRead-only

Examples

  1. Create a model object, and then add a reaction object.

    modelObj = sbiomodel ('my_model');
    reactionObj = addreaction (modelObj, 'a + b -> c + d');
  2. Define a kinetic law for the reaction object.

    kineticlawObj = addkineticlaw(reactionObj, 'MassAction');
  3. 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  
  4. 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   
Was this topic helpful?