User`s guide
Maximum
5-299
and outputs the sample-based 1-by-N index vector, idx. Each value in idx is an
integer in the range
[1 M] indexing the maximum value in the corresponding
column of
u.
As in
Value mode, length-M 1-D vector inputs and sample-based length-M row
vector inputs are both treated as M-by-1 column vectors.
If a maximum value occurs more than once in a particular column of
u, the
computed index corresponds to the first occurrence. For example, if the input
is the column vector
[32123]', the computed index of the maximum value
is
1 rather than 5.
Value and Index Mode
When Mode is set to Value and Index, the block outputs both the vector of
minima,
val, and the vector of indices, idx.
Running Mode
When Mode is set to Running, the block tracks the maximum value of each
channel in a time-sequence of M-by-N inputs. For sample-based inputs, the
output is a sample-based M-by-N matrix with each element y
ij
containing the
maximum value observed in element u
ij
for all inputs since the last reset. For
frame-based inputs, the output is a frame-based M-by-N matrix with each
element y
ij
containing the maximum value observed in the jth column of all
inputs since the last reset, up to and including element u
ij
of the current input.
The block resets the running maximum whenever a reset event is detected at
the optional
Rst port. The reset event is specified by the Reset port menu, and
can be one of the following:
•
Rising edge triggers a reset operation when the Rst input rises from a
negative value to zero or a positive value, or from zero to a positive value.
•
Falling edge triggers a reset operation when the Rst input falls from a
positive value to zero or a negative value, or from zero to a negative value.
•
Either edge triggers a reset operation when either a rising or falling edge
(as described above) occurs.
•
Non-zero sample triggers a reset operation at each sample time that the Rst
input is not zero.