Problem 147. Too mean-spirited

Created by the cyclist

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]

Tags

Problem Group

468 solvers submitted 822 solutions (1.76 solutions/solver).

Problem Comments

Solution Comments