Greater than before - MATLAB Cody - MATLAB Central

Problem 60926. Greater than before

Difficulty:Rate
Given an array of integers, write a function that returns elements that are greater than the one before them.
For instance,
input = [1, 3, 2, 4, 3, 5]
output = [3, 4, 5]

Solution Stats

57.69% Correct | 42.31% Incorrect
Last Solution submitted on Jun 18, 2025

Solution Comments

Show comments

Problem Recent Solvers15

Suggested Problems

More from this Author174

Problem Tags

Community Treasure Hunt

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

Start Hunting!