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 to | Object: compartment |
Data type | boolean |
Data values | true or false . The default
value is true . |
Access | Read/write |
Examples
Add a compartment to a model and check the ConstantCapacity
property
of the compartment.
Create a model object named
comp_model
.modelObj = sbiomodel ('comp_model');
Add the compartment object named
nucleus
with a capacity of0.5
.compartmentObj = addcompartment(modelObj, 'nucleus', 0.5);
Display the
ConstantCapacity
property.get(compartmentObj, 'ConstantCapacity')
ans = 1