simbio.diagram.setLine
Syntax
Description
simbio.diagram.setLine
sets properties of diagram lines shown in SimBiology Model
Builder. The changes are instantly reflected in the app.
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.
simbio.diagram.setLine(
sets the values of specified properties for the lines connected to a SimBiology object or
array of objects sObj
,propertyNames
,propertyValues
)sObj
.
simbio.diagram.setLine(
sets the property values specified by one or more name-value arguments.sObj
,Name,Value
)
Name
is the property name and Value
is the
corresponding value. Name
must appear inside quotes. You can specify
several name and value pair arguments in any order as
Name1,Value1,...,NameN,ValueN
.
You can specify a mixture of name-value arguments, structures, and cell array pairs of property names and values in the same function call.
simbio.diagram.setLine(
displays the names and possible values of configurable properties of a line connected to a
SimBiology object sObj
)sObj
. This syntax requires that only one line is
connected to sObj
. If there are multiple lines connected to
sObj
, specify the line by providing two objects as inputs that are
connected by the line. The functions returns an empty cell array when the property does not
have a finite set of possible values. sObj
must be scalar.
returns a cell array of possible values CV
= simbio.diagram.setLine(sObj
,propertyName
)CV
for the line property
propertyName
. sObj
must be scalar.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2021a