Skip to Main Content Skip to Search
Product Documentation

Products - Array of reaction products

Description

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.

Characteristics

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

See Also

addkineticlaw, addproduct, addspecies, rmproduct

  


Free Computational Biology Interactive Kit

See how to analyze, visualize, and model biological data and systems using MathWorks products.

Get free kit

Trials Available

Try the latest computational biology products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS