Extract signals from the vector-valued real input signal and transfer them to the vector-valued real output signal.
The extraction scheme is specified by the integer vector extract
.
This vector specifies which input signals are taken and in which
order they are transferred to the output vector. Note that the
dimension of extract
has to match the number of outputs and the elements
of extract
has to be in the range of [1, nin]
.
Additionally, the dimensions of the input connector signals and
the output connector signals have to be explicitly defined via the
parameters nin
and nout
.
The specification
nin = 7 "Number of inputs"; nout = 4 "Number of outputs"; extract[nout] = {6,3,3,2} "Extracting vector";
extracts four output signals (nout=4
)
from the seven elements of the
input vector (nin=7
):
y[1, 2, 3, 4] = u[6, 3, 3, 2];