This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Species initial amount


The InitialAmount property indicates the initial quantity of the SimBiology® species object. InitialAmount is the quantity of the species before the simulation starts.


Applies toObject: species
Data typedouble
Data valuesPositive real number. Default value is 0.


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

  1. Create a model object named my_model.

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

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

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

    MATLAB® returns:

    ans =