getIndex
Class: SimBiology.export.Model
Get indices into ValueInfo
and InitialValues
properties
Syntax
indices = getIndex(model,name)
indices = getIndex(model,name,type)
Description
returns
the indices of all indices
= getIndex(model
,name
)ValueInfo
objects in a SimBiology.export.Model
object
that have a QualifiedName
or Name
property
that match the specified name
input argument.
getIndex
first tries to match theQualifiedName
property. If there are matches, thengetIndex
returns their indices.If there are no matches based on
QualifiedName
, thengetIndex
tries to match theName
property. If there are matches, thengetIndex
returns their indices.If there are no matches based on
QualifiedName
orName
, thengetIndex
returns[]
.
returns
indices for only the indices
= getIndex(model
,name
,type
)ValueInfo
objects with a Type
property
that matches the type
input argument.
Input Arguments
|
|
|
Character vector containing a name to match against the |
|
Character vector containing a name to match against the Default: All types. |
Output Arguments
|
Vector of indices indicating which |