Main Content

SimBiology.QuantityComponent

Represent SimBiology quantity objects

Description

SimBiology.QuantityComponent represents the following SimBiology quantity objects: species, compartments, and parameters.

When you have an array containing a mixture of these different objects, use the properties and functions of SimBiology.QuantityComponent to access or update all objects in the array at once.

Properties

expand all

Flag to set the quantity value as constant, specified as a numeric or logical 1 (true) or 0 (false).

Data Types: double | logical

SimBiology.QuantityComponent object name, specified as a character vector or string scalar.

For details on requirements and recommendations for naming SimBiology® components, see Guidelines for Naming Model Components.

Data Types: char | string

Additional information that you can add for the SimBiology object, specified as a character vector or string scalar.

Data Types: char | string

This property is read-only.

Parent object, specified as one of the following.

  • SimBiology.Model

  • SimBiology.Compartment

  • SimBiology.KineticLaw

Object label, specified as a character vector or string scalar.

Data Types: char | string

This property is read-only.

Object type, specified as 'species', 'compartment', or 'parameter'. When you create a SimBiology object, the value of Type is automatically defined.

Data Types: char

Units for the quantity value, specified as a character vector or string scalar.

Example: "milligram"

Data Types: char | string

Data to associate with the object, specified as any MATLAB array. For example, you can specify a scalar, vector, character vector, table, or structure. Use this property to store arbitrary data on an object.

The object does not use this data directly, but you can access it using dot notation or get.

Quantity value, specified as a numeric scalar.

Data Types: double

Object Functions

deleteDelete SimBiology object
findUsagesFind out how a species, parameter, or compartment is used in a model
getGet SimBiology object properties
setSet SimBiology object properties

Version History

Introduced in R2019b