Problem 2476. Max Change in Consecutive Elements

Created by Chandan singh in Community

If an array is given as input then find the index of consecutive elements that represent maximum change.


 Input    x = [1 10 3 0 2 4 0 -8 9 1]
 Output   y = [8 9]

Solution Stats

84.0% Correct | 16.0% Incorrect
Last solution submitted on Feb 24, 2019

Problem Comments

Recent Solvers69

Suggested Problems

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!