Problem 56210. Find the moving-average of the elements of a vector

Example
Input vector: [1 2 3 4]
output vector: 1st element=1/1, 2nd element=(1+2)/2, 3rd element=(1+2+3)/3, 4th element=(1+2+3+4)/4.
That is, [1 1.5 2 2.5]

Solution Stats

56.82% Correct | 43.18% Incorrect
Last Solution submitted on Feb 10, 2025

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers22

Suggested Problems

Problem Tags

Community Treasure Hunt

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

Start Hunting!