Main Content

Reactants

Array of reaction reactants

Description

The Reactants property is a 1-by-n species object array of reactants in the reaction. If the Reaction property is modified to use a different reactant, the Reactants property will be updated accordingly.

You can add reactant species to the reaction with the addreactant method.

You can remove reactant species from the reaction with the rmreactant method. You can also update reactants by setting the Reaction property with the function set.

Characteristics

Applies toObject: reaction
Data typeSpecies object or array of species objects
Data valuesSpecies objects. Default is [] (empty).
AccessRead-only

Examples

  1. Create a model object.

    modelObj = sbiomodel ('my_model');
  2. Add reaction objects.

    reactionObj = addreaction (modelObj, 'a + b -> c + d');
  3. View the reactants for reactionObj.

    get(reactionObj, 'Reactants')

    MATLAB® returns:

    SimBiology Species Array
    
    Index:  Compartment:  Name:  InitialAmount: InitialAmountUnits:
     1       unnamed        a        0                 
     2       unnamed        b        0