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
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers24
Suggested Problems
-
Determine if a Given Number is a Triangle Number
397 Solvers
-
Project Euler: Problem 8, Find largest product in a large string of numbers
1304 Solvers
-
Number of 1s in a binary string
10966 Solvers
-
603 Solvers
-
1836 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
FYI: That's not the definition of moving average, but cool.