addspecies
Create species object and add to model or compartment
Syntax
Description
creates and returns a speciesObj
= addspecies(modelCompartmentObj
,speciesName
)Species
object speciesObj
.
The function also assigns
speciesName
to theName
property ofspeciesObj
.modelCompartmentObj
to theParent
property ofspeciesObj
.speciesObj
to theSpecies
property of the model object or compartment objectmodelCompartmentObj
.A value of 0 to the
Value
property ofspeciesObj
.
also assigns the speciesObj
= addspecies(modelCompartmentObj
,speciesName
,initialValue
)Value
property of speciesObj
to
initialValue
.
also sets the properties of speciesObj
= addspecies(___,Name=Value
)speciesObj
using one or more name-value
arguments. Name
is the property name and Value
is the
corresponding value.