User`s guide
Maximum
5-300
For sample-based inputs, a reset event causes the running maximum for each
channel to be initialized to the value in the corresponding channel of the
current input. For frame-based inputs, a reset event causes the running
maximum for each channel to be initialized to the earliest value in each
channel of the current input. The
Rst port can be disabled by selecting None
from the
Reset port menu.
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 Maximum block in the model below calculates the running maximum of a
frame-based 3-by-2 (two-channel) matrix input,
u. The running maximum is
reset at t=2 by an impulse to the block’s
Rst port.
The Maximum block has the following settings:
•
Mode = Running
•Reset port = Non-zero signal
The Signal From Workspace block has the following settings:
•
Signal = u
•Sample time = 1/3
•Samples per frame = 3
where
u = [6 1 3 -7 2 5 8 0 -1 -3 2 1;1 3 9 2 4 1 6 2 5 0 4 17]'
The Discrete Impulse block has the following settings:
•
Delay (samples) = 2
•Sample time = 1
•Samples per frame = 1