MATLAB: Moving average of array

moving averagemovmean

Given an array of double data. How can I calculate the moving average of this array?

Best Answer

If you have R2016a or later, use the movmean (link) function.
Otherwise, see the filter (link) documentation section on Moving Average Filter (link).
Related Question