Simulink Control Design™ - MathWorks

(Tuis.) #1
element — Output element index
[1,M] (default) | positive integer | vector of positive integers

Output element index, specified as a positive integer less than or equal to the port width
of the output of the specified block, or a vector of such integers. By default, if you do not
specify element, getOutputIndex returns the indices of all elements in the selected
output specification. For an example, see “Get Output Indices for Output Specification
with Multiple Elements” on page 15-152.

Output Arguments


index — Output index
2-element row vector | 2-column array

Output index, returned as a 2-element row vector when element is an integer, or a 2-
column array when element is a vector. Each row of index contains the index for a
single output element.

The first column of index contains the index of the corresponding output specification in
the Outputs property of op. The second column contains the element index within the
output specification.

Using index, you can specify the output portion of a custom mapping for customized
trimming of Simulink models. For more information, see the CustomMappingFcn
property of operspec.

See Also
findop | getInputIndex | getStateIndex | operspec

Topics
“Compute Operating Points Using Custom Constraints and Objective Functions” on page
1-78

Introduced in R2017a

15 Alphabetical List

Free download pdf