Discover MakerZone

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

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!

Problem 1525. Simple problem creating a function from an abstract specification.

Created by Bruce Char

MYSTERYFUNCTION3 This takes a vector of numbers v and computes a vector w such the w[i] is the average of v[i] and the previous element. v[1] should be w[1] instead of an average. The function should work properly for any vector of length of at least one.

Problem Group

Solution Statistics

40 correct solutions 12 incorrect solutions
Last solution submitted on May 24, 2015

Problem Comments