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

514 solvers submitted 921 solutions (1.79 solutions/solver).

Problem Comments

Solution Comments