Skip to Main Content Skip to Search
Product Documentation

CapacityUnits - Compartment capacity units

Description

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.

Characteristics

Applies toObject: compartment
Data typechar string
Data valuesUnits from library with dimensions of length, area, or volume. Default = '' (empty).
AccessRead/write

Examples

  1. Create a model object named my_model.

    modelObj = sbiomodel ('my_model');
    
  2. Add a compartment object named cytoplasm with a capacity of 0.5.

    compObj = addcompartment (modelObj, 'cytoplasm', 0.5);
    
  3. Set the CapacityUnits to femtoliter, and verify.

    set (compObj,'CapacityUnits', 'femtoliter');
    get (compObj,'CapacityUnits')
    

    MATLAB returns:

    ans =
    
    femtoliter

See Also

InitialAmount, sbioaddtolibrary, sbioconvertunits, sbioshowunits

  


Free Computational Biology Interactive Kit

See how to analyze, visualize, and model biological data and systems using MathWorks products.

Get free kit

Trials Available

Try the latest computational biology products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS