simbio.diagram.getBlock
Syntax
Description
simbio.diagram.getBlock
returns properties of diagram blocks shown in
SimBiology Model
Builder.
Before you run the function at the command line:
Open the corresponding SimBiology® model in the SimBiology Model Builder app.
Export the model from the app to MATLAB® workspace by selecting Export > Export Model to MATLAB Workspace on the Home tab of the app.
You can query and configure only the properties of the objects shown in the Diagram tab of the app. The objects shown in the diagram are compartments, species, reactions, rate rules, repeated assignment rules, and parameters that are on the left-hand side of a rate rule, a repeated assignment rule, or an event function.
returns the names and current values of the block properties of the species object
SV
= simbio.diagram.getBlock(speciesObj
,exprObj
)speciesObj
that is connected to an expression (reaction, rate rule,
or repeated assignment rule) object exprObj
. You can use this syntax to
configure the Position
, Pin
, and
Visible
properties of a specific cloned block when you have multiple
clones of the same species. Clones have the same values for all the other properties.
returns the values of the specified block properties QV
= simbio.diagram.getBlock(sObj
,propertyNames
)propertyNames
of a
SimBiology object sObj
.
returns the names and current values of the specified block properties
QV
= simbio.diagram.getBlock(speciesObj
,exprObj
,propertyNames
)propertyNames
of the species object speciesObj
that is connected to an expression object exprObj
.
simbio.diagram.getBlock(___)
displays
the names and values of block properties. Use this syntax with any of the input arguments in
the previous syntaxes.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2021a