Compartment capacity units
The CapacityUnits property indicates the unit definition for the Capacity property of a compartment object. CapacityUnits can be any unit from the units library. To get a list of the defined units in the library, use the sbioshowunits function. If CapacityUnits changes from one unit definition to another, the Capacity does not automatically convert to the new units. The sbioconvertunits function does this conversion. To add a user-defined unit to the list, see sbioaddtolibrary.
|Applies to||Object: compartment|
|Data type||char string|
|Data values||Units from library with dimensions of length, area, or volume. Default = '' (empty).|
Create a model object named my_model.
modelObj = sbiomodel ('my_model');
Add a compartment object named cytoplasm with a capacity of 0.5.
compObj = addcompartment (modelObj, 'cytoplasm', 0.5);
Set the CapacityUnits to femtoliter, and verify.
set (compObj,'CapacityUnits', 'femtoliter'); get (compObj,'CapacityUnits')
ans = femtoliter