Compartment capacity units
CapacityUnits property indicates the
unit definition for the
Capacity property of a
CapacityUnits can be any unit
from the units library. To get a list of the defined units in the
library, use the
CapacityUnits changes from one unit definition
to another, the
Capacity does not automatically
convert to the new units. The
does this conversion. To add a user-defined unit to the list, see
CapacityUnits property is identical to the
|Applies to||Object: compartment|
|Data type||Character vector|
|Data values||Units from library with dimensions of length, area, or volume.
Default = |
false, units are not used. However, SimBiology still performs a minimum level of dimensional analysis to decide whether a reaction rate is in dimensions of amount/time or concentration/time.
false, units (if not empty) must have consistent dimensions so that SimBiology can perform dimensional analysis. However, the units are not converted.
UnitConversionis set to
true), SimBiology performs a dimensional analysis and converts everything to consistent units. Hence, you must specify consistent units, and no units can be empty. If you have a dimensionless parameter, you must still set its unit to
Create a model object named
modelObj = sbiomodel ('my_model');
Add a compartment object named
cytoplasmwith a capacity of
compObj = addcompartment (modelObj, 'cytoplasm', 0.5);
femtoliter, and verify.
set (compObj,'CapacityUnits', 'femtoliter'); get (compObj,'CapacityUnits')
ans = femtoliter