moving average of array

3 views (last 30 days)
Guido Pastore
Guido Pastore on 25 Mar 2019
Commented: Star Strider on 25 Mar 2019
Given an array of double data. How can I calculate the moving average of this array?

Accepted Answer

Star Strider
Star Strider on 25 Mar 2019
If you have R2016a or later, use the movmean (link) function.
Otherwise, see the filter (link) documentation section on Moving Average Filter (link).
  2 Comments
Star Strider
Star Strider on 25 Mar 2019
As always, my pleasure.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by