Main Content


Array of reaction reactants


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.


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


  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