| SimBiology® | ![]() |
The InitialAmountUnits property indicates the unit definition for the InitialAmount property of a species object. InitialAmountUnits can be one of the builtin units. To get a list of the defined units use the sbioshowunits function. If InitialAmountUnits changes from one unit definition to another, the InitialAmount does not automatically convert to the new units. The sbioconvertunits function does this conversion. To add a user-defined unit to the list see sbioregisterunit.
See DefaultSpeciesDimension for more information on specifying dimensions for species quantities. InitialAmountUnits must have corresponding dimensions to CapacityUnits. For example, if the CapacityUnits are meter2 then species must be amount/meter2 or amount.
| Applies to | object: species |
| Data type | char string |
| Data values | Units from library with dimensions of amount, amount/length, amount/area, or amount/volume. Default = '' (empty) |
| Access | Read/Write |
Create a model object named my_model.
modelObj = sbiomodel ('my_model');
compObj = addcompartment(modelObj, 'cell');Add a species object with the name glucose.
speciesObj = addspecies (compObj, 'glucose');
Set the initial amount to 100, InitialAmountUnits to molecule, and verify.
set (speciesObj,'InitialAmountUnits','molecule'); get (speciesObj,'InitialAmountUnits')
MATLAB® returns
ans = molecule
DefaultSpeciesDimension, InitialAmount, sbioshowunits, sbioconvertunits, sbioregisterunit
![]() | InitialAmount | KineticLaw | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |