Problem 147. Too mean-spirited
Find the mean of each consecutive pair of numbers in the input row vector. For example,
x=[1 2 3] ----> y = [1.5 2.5]
x=[100 0 0 0 100] ----> y = [50 0 0 50]
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers1894
Suggested Problems
-
Return the largest number that is adjacent to a zero
5416 Solvers
-
Return the 3n+1 sequence for n
8357 Solvers
-
2289 Solvers
-
2486 Solvers
-
Magic is simple (for beginners)
9936 Solvers
More from this Author23
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!