What does moving average filter do?
Moving Average Filter is a Finite Impulse Response (FIR) Filter smoothing filter used for smoothing the signal from short term overshoots or noisy fluctuations and helps in retaining the true signal representation or retaining sharp step response.
How to calculate average in Simulink?
To track the mean value in a sequence of inputs, select the Running mean parameter. The Running mode in the Mean block will be removed in a future release. To compute the running mean in Simulink®, use the Moving Average block instead.