Skip to Main Content Skip to Search
Product Documentation

ConstantCapacity - Specify variable or constant compartment capacity

Description

The ConstantCapacity property indicates whether the capacity of the compartment object can vary during the simulation. ConstantCapacity can be either true (1) or false (0). If ConstantCapacity is true, the quantity of the compartment cannot vary during the simulation. By default, ConstantCapacity is true and the quantity of the compartment cannot vary during the simulation. If ConstantCapacity is false, the quantity of the compartment can be determined by rules and events.

Characteristics

Applies toObject: compartment
Data typeboolean
Data valuestrue or false. The default value is true.
AccessRead/write

Examples

Add a compartment to a model and check the ConstantCapacity property of the compartment.

  1. Create a model object named comp_model.

    modelObj = sbiomodel ('comp_model');
  2. Add the compartment object named nucleus with a capacity of 0.5.

    compartmentObj = addcompartment(modelObj, 'nucleus', 0.5);
  3. Display the ConstantCapacity property.

    get(compartmentObj, 'ConstantCapacity')
    ans =
    
         1

See Also

addcompartment, ConstantAmount, ConstantValue

  


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