n = the number of elements in the window (the Averaging Window)

dT = the input data element at time T

Block Category: Matrix Operation

Description: The meanSmooth block calculates the mean average of the input signal within the given smoothing window. The output is the smoothed signal.

Averaging Window: Specifies the number of elements to be averaged. The meanSmooth block always uses the most recent elements.



The meanSmooth block smooths a noisy input signal via a trailing mean with a user-defined window. The averaging window must be a positive integer.

Near the start of the simulation the user-specified window will be larger than the number of time steps (that is, the available data set); in this case, the window the block uses increase in size every time step until the number of time steps equals the user-specified window size.

meanSmooth example