Main Content

ParameterVariableNames

Cell array of reaction rate parameters

Description

The ParameterVariableNames property shows the parameters used by the kinetic law object to determine the ReactionRate equation in the reaction object. Use setparameter to assign ParameterVariableNames. When you assign species to ParameterVariableNames, SimBiology® software maps these parameter names to ParameterVariables in the kinetic law object.

If the reaction is using a kinetic law, the ReactionRate property of a reaction object shows the result of a mapping from a Kinetic Law Definition. The ReactionRate is determined by the kinetic law object Expression property by mapping ParameterVariableNames to ParameterVariables and SpeciesVariableNames to SpeciesVariables.

Characteristics

Applies toObject: kineticlaw
Data typeCell array of character vectors
Data valuesCell array of parameters
AccessRead/write

Examples

Create a model, add a reaction, and assign the SpeciesVariableNames for the reaction rate equation.

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

    modelObj = sbiomodel('my_model');
    reactionObj = addreaction(modelObj, 'a -> c + d');
  2. Create a kinetic law object for the reaction object of type 'Henri-Michaelis-Menten'.

    kineticlawObj = addkineticlaw(reactionObj, 'Henri-Michaelis-Menten');

    reactionObj KineticLaw property is configured to kineticlawObj.

  3. The 'Henri-Michaelis-Menten' kinetic law has two parameter variables (Vm and Km) that should to be set. To set these variables:

    setparameter(kineticlawObj,'Vm', 'Va');
    setparameter(kineticlawObj,'Km', 'Ka');
  4. Verify that the parameter variables are correct.

    get (kineticlawObj, 'ParameterVariableNames')

    MATLAB® returns:

    ans = 
    
        'Va'    'Ka'