StatesToLog
R2026bSpecify species, compartment, or parameter data recorded
Description
Logged SimBiology quantity components, specified as a
SimBiology.Species, SimBiology.Parameter, or
SimBiology.Compartment object, or a vector of objects.
Alternatively, you can specify the object name or names as a character vector, string
scalar, string vector, or cell array of character vectors.
By default, the software logs all species, all nonconstant compartments, and all nonconstant parameters. For models with equivalence sets, it logs only the resolved quantity from each equivalence set. Nonresolved quantities are excluded.
When you specify quantities by name, use the fully qualified name (that is, the
FullyQualifiedName property) for quantities that belong to
child models. For example, specify a species as
"parentModelName.childModelName.compartmentName.speciesName". If
the model does not contain a hierarchy but multiple species in different compartments
share the same name, use the qualified name instead (that is,
"compartmentName.speciesName").
If you specify a quantity that is in an equivalence set but is not the resolved
quantity, the software throws an error at simulation time. Remove these quantities from
StatesToLog and replace them with their corresponding resolved
quantities.
Characteristics
| Applies to | Object: RuntimeOptions |
| Data type | Character vector, cell array of character vectors, string scalar, string vector, object or vector of objects |
| Data values | Species objects, compartment objects, or parameter objects. Default is
'all', which means the software logs all
species, all nonconstant compartments, and all nonconstant
parameters. For models with equivalence sets, it logs only the
resolved quantity from each equivalence set. Nonresolved quantities
are excluded. A nonconstant compartment or parameter means that its
ConstantValue property is set to false. |
| Access | Read/write |

