| Contents | Index |
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). |
| Access | Read/write |
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')
MATLAB returns:
ans = femtoliter
InitialAmount, sbioaddtolibrary, sbioconvertunits, sbioshowunits

See how to analyze, visualize, and model biological data and systems using MathWorks products.
Get free kit| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |