Max Change in Consecutive Elements - MATLAB Cody - MATLAB Central

Problem 2476. Max Change in Consecutive Elements

Difficulty:Rate

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

Example:

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

Solution Stats

73.11% Correct | 26.89% Incorrect
Last Solution submitted on Apr 20, 2025

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
1
3

Problem Recent Solvers167

Suggested Problems

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!