Skip to Main Content Skip to Search
Product Documentation

Active - Indicate object in use during simulation

Description

The Active property indicates whether a simulation is using a SimBiology object. A SimBiology model is organized into a hierarchical group of objects. Use the Active property to include or exclude objects during a simulation.

Characteristics

Applies toObjects: configset, event, reaction, RepeatDose, rule, ScheduleDose, variant
Data typeboolean
Data values

true or false. The default value for events, reactions, and rules is true. For the configset object, default is true. For added configset object, the default is false. For variants, the default is false.

AccessRead/write

Examples

  1. Create a model object.

    modelObj = sbiomodel ('my_model');
  2. Add a reaction object and verify that the Active property setting is 'true' or 1.

    reactionObj = addreaction (modelObj, 'a + b -> c + d');
    get (reactionObj, 'Active')

    MATLAB returns:

    ans =
    
    1
  3. Set the Active property to 'false' and verify.

    set (reactionObj, 'Active', false);
    get (reactionObj, 'Active')

    MATLAB returns:

    ans =
    
    0

See Also

addconfigset, addreaction, addrule, Event object, Reaction object,RepeatDose object, Rule object , ScheduleDose object, Variant object,

  


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