Capacity property indicates the size
of the SimBiology® compartment object. If the size of the compartment
does not vary during simulation, set the property
You can vary compartment capacity using rules or events.
Remember to set the
Events cannot result in the capacity having a negative value. Rules could result in the capacity having a negative value.
|Applies to||Object: compartment|
|Data values||Positive real number. The default value is |
Add a compartment to a model and set the compartment capacity.
Create a model object named
modelObj = sbiomodel ('comp_model');
Add the compartment object named
a capacity of
compartmentObj = addcompartment(modelObj, 'nucleus', 0.5);