Package: dsp
Find maximum value of input or sequence of inputs
The Maximum
object finds the maximum values
of an input or sequence of inputs.
To compute the maximum value of an input or sequence of inputs:
Define and set up your System object™. See Construction.
Call step
to find the maximum according to the
properties of dsp.Maximum
. The behavior of step
is
specific to each object in the toolbox.
Note:
Starting in R2016b, instead of using the 
H = dsp.Maximum
returns
an object, H
, that computes the value and index
of the maximum elements in an input or a sequence of inputs along
the specified Dimension
.
H = dsp.Maximum('
returns
a maximumfinding object, PropertyName
',PropertyValue
,...)H
, with each specified
property set to the specified value.

Output maximum value Set this property to 

Calculate over single input or multiple inputs When you set this property to 

Output index of maximum value Set this property to 

Additional input to enable resetting of running maximum Set this property to 

Condition that triggers resetting of running maximum Specify the event that resets the running maximum as one of
 

Numbering base for index of maximum value Specify whether to start the index numbering from 

Dimension to operate along Specify how the maximum calculation is performed over the data
as one of  

Numerical dimension to calculate over Specify the integer dimension of the input signal over which
the object finds the maximum. The cannot exceed the number of dimensions
in the input signal. This property only applies when you set the 
clone  Create maximumfinding object with same property values 
getNumInputs  Number of expected inputs to step method 
getNumOutputs  Number of outputs of step method 
isLocked  Locked status for input attributes and nontunable properties 
release  Allow property value and input characteristics changes 
reset  Reset computation of running maximum 
step  Maximum value 
Find a maximum value and its index:
hmax1 = dsp.Maximum; x = randn(100,1); [y, I] = step(hmax1, x);
Compute a running maximum:
hmax2 = dsp.Maximum; hmax2.RunningMaximum = true; x = randn(100,1); y = step(hmax2, x); % y(i) is the maximum of all values in the vector x(1:i)
This object implements the algorithm, inputs, and outputs described on the Maximum block reference page. The object properties correspond to the block parameters.