Skip to Main Content Skip to Search
Product Documentation

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                 
    

See Also

addreactant, addreaction, addspecies, rmreactant

  


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