MinMax Running Resettable
Determines the minimum or maximum of the signal over time.
Description
Block MinMax Running Resettable outputs the minimum or maximum of all past values of the u
input. Whether the block outputs minimum or maximum values is determined by the value of the parameters Function.
The block can reset its state based on an external reset signal R
. When the reset signal R
is different from zero true (1)
, the block resets the parameters value output Initial condition.
The input signal can be a scalar, vector or matrix signal. The block outputs a signal having the same dimensions as the input signal. Each output element is equal to the current minimum or maximum of the corresponding input elements.
The block icon changes depending on the function selected in the parameters. Function function.
Ports
Input
#
u
—
input signal
scalar
| vector
| matrix
Details
Input signal as a scalar, vector or matrix. The block outputs the minimum or maximum value of all past input data u
according to the value of the parameters Function.
If the parameters Initial condition scalar value is specified, the block will expand it so that it has the same dimensions as the non-scalar input u
.
Data types |
|
Complex numbers support |
No |
#
R
—
reset signal
scalar
| vector
| matrix
Details
An input port that accepts a reset signal as a scalar, vector, or matrix. If the reset signal is non-scalar, it must have the same dimensions as the input signal u
. As long as the reset signal has a zero value, the block outputs the current minimum or maximum value of the input u
. Whenever the reset signal has a non-zero value of true (1)
, the block resets the output to the value of parameters Initial condition.
Data types |
|
Complex numbers support |
No |
Output
#
y
—
current minimum or maximum value
scalar
| vector
| matrix
Details
An output signal in the form of a scalar, vector or matrix, where each element is equal to the current minimum or maximum value of the corresponding input elements. The output signal y
has the same data type and dimensions as the input signal u
.
When the block receives a non-zero reset signal true (1)
, the block resets the output to the values of parameters Initial condition.
Data types |
|
Complex numbers support |
No |
Parameters
Main
#
Function —
mathematical function
min
| max
Details
Specifies which of the functions (min
or max
) will be applied to the input.
Values |
|
Default value |
|
Program usage name |
|
Tunable |
No |
Evaluatable |
No |
#
Initial condition —
initial value
Scalar / array of real numbers
Details
The initial value of the output signal. When the input reset signal R
is set to true (1)
, the unit resets the output signal to this value.
Default value |
|
Program usage name |
|
Tunable |
Yes |
Evaluatable |
Yes |