User`s guide
Mean
5-303
5Mean
Purpose Find the mean value of an input or sequence of inputs.
Library Statistics
Description The Mean block computes the mean of each column in the input, or tracks the
mean values in a sequence of inputs over a period of time. The
Running mean
parameter selects between basic operation and running operation.
Basic Operation
When the Running mean check box is not selected, the block computes the
mean of each column of M-by-N input matrix
u independently at each sample
time.
y = mean(u) % Equivalent MATLAB code
For convenience, length-M 1-D vector inputs and sample-based length-M row
vector inputs are both treated as M-by-1 column vectors.
The output at each sample time,
y, is a 1-by-N vector containing the mean
value for each column in
u. The mean of a complex input is computed
independently for the real and imaginary components, as shown below.
The frame status of the output is the same as that of the input.
Running Operation
When the Running mean check box is selected, the block tracks the mean
value of each channel in a time-sequence of M-by-N inputs. For sample-based
inputs, the output is a sample-based M-by-N matrix with each element y
ij
containing the mean value of element u
ij
over all inputs since the last reset. For
frame-based inputs, the output is a frame-based M-by-N matrix with each
Comp
l
ex
input (
u)
Output (y)
42i+
3i––
44i+
14+– i
4– i–
01.6i+