User`s guide
Minimum
5-310
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 minimum 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 minimum 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 
[-1232-1]', the computed index of the minimum 
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 minimum 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 
minimum 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 minimum value observed in the jth column of all 
inputs since the last reset, up to and including element u
ij
 of the current input.
If the 
Reset port parameter is set to Non-zero sample, the optional Rst port 
is enabled and the block resets the running minimum when the scalar input at 
the 
Rst port is nonzero. (The Rst port can be disabled by setting the Reset port 
parameter to 
None.) For sample-based inputs, the running minimum for each 
channel is initialized to the value in the corresponding channel of the current 
input. For frame-based inputs, the running minimum for each channel is 
initialized to the earliest value in each channel of the current input.
As in the other modes, length-M 1-D vector inputs and sample-based length-M 
row vector inputs are both treated as M-by-1 column vectors.
Example The Minimum block in the model below calculates the running minimum of a 
frame-based 3-by-2 (two-channel) matrix input. The running minimum is reset 
at t=2 by an impulse to the block’s 
Rst port.










