Main Content

InitialAmount

Species initial amount

Description

TheInitialAmountproperty indicates the initial quantity of the SimBiology®species object.InitialAmountis the quantity of the species before the simulation starts.

TheInitialAmountproperty andValueproperty are identical.

Characteristics

Applies to Object: species
Data type double
Data values Positive real number. Default value is0.
Access Read/write

Examples

Add a species to a model and set the initial amount of the species.

  1. Create a model object namedmy_model.

    modelObj = sbiomodel ('my_model');
  2. Add the species object namedglucose.

    speciesObj = addspecies (modelObj,'glucose');
  3. Set the initial amount to100and verify.

    set (speciesObj,'InitialAmount',100); get (speciesObj,'InitialAmount')

    MATLAB®returns:

    ans = 100