(To be removed) Find minimum values of input or sequence of inputs
The dsp.Minimum
object finds the minimum value of an
input or sequence of inputs.
The dsp.Minimum
System
object™ will be removed in a future release. To compute the minimum, use the min
function. To compute the running minimum in MATLAB®, use the dsp.MovingMinimum
object. For more information,
see Compatibility Considerations.
To compute the minimum value of an input or sequence of inputs:
Create the dsp.Minimum
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).
returns an object,
min
= dsp.Minimummin
, that computes the value and/or index of the minimum elements in
an input or a sequence of inputs over the specified Dimension
.
returns a minimum-finding object, min
= dsp.Minimum(Name,Value
)min
, with each specified property set
to the specified value.
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)
Note: If you are using R2016a or an
earlier release, replace each call to the object with the equivalent step
syntax. For example, obj(x)
becomes
step(obj,x)
.
Find a minimum value and its index.
min1 = dsp.Minimum;
x = randn(100,1);
[y, I] = min1(x) %#ok
y = -2.9443
I = 35
Compute a running minimum.
min2 = dsp.Minimum; min2.RunningMinimum = true; x = randn(100,1); y = min2(x); plot(y);
y(i) is the minimum of all values in the vector x(1:i).
This object implements the algorithm, inputs, and outputs described on the Minimum block reference page. The object properties correspond to the block parameters.