iterate
Iterate over model elements
Syntax
Description
iterate(
iterates over components in the architecture arch
,iterType
,iterFunction
)arch
in the order
specified by iterType
and invokes the function specified by the
function handle iterFunction
on each component.
Note
This function is part of the instance programmatic interfaces that you can use to analyze
the model iteratively, element-by-element. The instance
refers to the
element instance on which the iteration is being performed.
iterate(___,
iterates
over components in the architecture using all previous syntaxes with additional
options.Name=Value
)
iterate(___,
iterates over components in the architecture with additional options and passes all trailing
arguments, specified as Name=Value
,additionalArgs
)additionalArgs
, as arguments to
iterFunction
. Name-value arguments with
additionalArgs
must be specified as comma-separated name-value
pairs.
Examples
Input Arguments
Name-Value Arguments
More About
Version History
Introduced in R2019a