Species initial amount
TheInitialAmount
property indicates the initial quantity of the SimBiology®species object.InitialAmount
is the quantity of the species before the simulation starts.
TheInitialAmount
property andValue
property are identical.
Applies to | Object: species |
Data type | double |
Data values | Positive real number. Default value is0 . |
Access | Read/write |
Add a species to a model and set the initial amount of the species.
Create a model object namedmy_model
.
modelObj = sbiomodel ('my_model');
Add the species object namedglucose
.
speciesObj = addspecies (modelObj,'glucose');
Set the initial amount to100
and verify.
set (speciesObj,'InitialAmount',100); get (speciesObj,'InitialAmount')
MATLAB®returns:
ans = 100