Problem 147. Too mean-spirited

Created by the cyclist in Community

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

63.15% Correct | 36.85% Incorrect
Last solution submitted on Mar 22, 2019

Problem Comments

Solution Comments

Recent Solvers1517

Suggested Problems

More from this Author23


Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!