Find maximum value of input or sequence of inputs
The dsp.Maximum
object finds the maximum values of an
input or sequence of inputs.
The Running
mode in the dsp.Maximum
System
object™ will be removed in a future release. To compute the running maximum in
MATLAB®, use the dsp.MovingMaximum
System
object instead.
To compute the maximum value of an input or sequence of inputs:
Create the dsp.Maximum
object and set its properties.
Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects? (MATLAB).
max = dsp.Maximum
max = dsp.Maximum(Name,Value)
For versions earlier than R2016b, use the step
function to run the System object algorithm. The arguments to
step
are the object you created, followed by
the arguments shown in this section.
For example, y = step(obj,x)
and y = obj(x)
perform equivalent operations.
[val,ind] = max(x)
val = max(x)
ind = max(x)
val = max(x,r)
To use an object function, specify the
System
object as the first input argument. For
example, to release system resources of a System
object named obj
, use
this syntax:
release(obj)
This object implements the algorithm, inputs, and outputs described on the Maximum block reference page. The object properties correspond to the block parameters.