Find mean value of input or sequence of inputs
The dsp.Mean
object finds the mean of an input
or sequence of inputs.
To compute the mean of an input or sequence of inputs:
Define and set up your System object™. See Construction.
Call step
to compute the mean according to the
properties of dsp.Mean
. The behavior of step
is
specific to each object in the toolbox.
Starting in R2016b, instead of using the step
method
to perform the operation defined by the System
object, you can
call the object with arguments, as if it were a function. For example, y
= step(obj,x)
and y = obj(x)
perform
equivalent operations.
The Running
mode in the dsp.Mean
System
object will
be removed in a future release. To compute the running mean in MATLAB^{®},
use the dsp.MovingAverage
System
object instead.
mn = dsp.Mean
returns
an object, mn
, that computes the mean of an input
or a sequence of inputs.
mn = dsp.Mean('
returns
a meanfinding object, PropertyName
',PropertyValue
,...)mn
, with each specified
property set to the specified value.

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

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

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

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

Numerical dimension to calculate over Specify the integer dimension, indexed from one, of the input signal over which the object
calculates the mean. The value cannot exceed the number of dimensions in the
input signal. This property only applies when you set the Dimension property to

reset  Reset internal states of meanfinding object 
step  Mean value 
Common to All System Objects  

clone  Create System object with same property values 
getNumInputs  Expected number of inputs to a System object 
getNumOutputs  Expected number of outputs of a System object 
isLocked  Check locked states of a System object (logical) 
release  Allow System object property value changes 
This object implements the algorithm, inputs, and outputs described on the Mean block reference page. The object properties correspond to the block parameters.