Set SimBiology diagram line properties
simbio.diagram.setLine(
sets the values of specified properties for the lines connected to a SimBiology object or array of objectssObj
,propertyNames
,propertyValues
)sObj
.
Note
Before you run the function at the command line:
Open the corresponding SimBiology model in theSimBiology Model Builder应用程序。
Export the model from the app to the MATLAB®workspace by selectingExport>Export Model to MATLAB Workspaceon theHometab of the app.
You can query and configure only the properties of the objects shown in theDiagramtab 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 property values specified by one or more name-value arguments.sObj
,Name,Value
)
Name
is the property name andValue
is the corresponding value.Name
must appear inside quotes. You can specify several name and value pair arguments in any order asName1,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 objectsObj
)sObj
. This syntax requires that only one line is connected tosObj
. If there are multiple lines connected tosObj
, 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 valuesCV
= simbio.diagram.setLine(sObj
,propertyName
)CV
for the line propertypropertyName
.sObj
must be scalar.
SimBiology Model Builder|simbio.diagram.getBlock
|simbio.diagram.setBlock
|simbio.diagram.getLine
|simbio.diagram.splitBlock
|simbio.diagram.joinBlock