Array of reaction products


The Products property contains an array of SimBiology.Species objects.

Products is a 1-by-n species object array that indicates the species that are changed by the reaction. If the Reaction property is modified to use a different species, the Products property is updated accordingly.

You can add product species to the reaction with addproduct function. You can remove product species from the reaction with rmproduct. You can also update reaction products by setting the Reaction property with the function set.


Applies toObject: reaction
Data typeArray of 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. Verify the assignment.

    productsObj = get(reactionObj, 'Products')

    MATLAB® returns:

    SimBiology Species Array
    Index:  Compartment:  Name:  InitialAmount: InitialAmountUnits:
     1       unnamed        c        0                 
     2       unnamed        d        0                 
Was this topic helpful?