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

56.67% Correct | 43.33% Incorrect
Last Solution submitted on Jun 25, 2025

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers17

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!