Given a vector, return a new vector containing only the even numbers in their original order. Example: keep_evens([1 2 3 4 5 6]) returns [2 4 6]

Solution Stats

31 Solutions

10 Solvers

Last Solution submitted on Jun 01, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers10

Suggested Problems

More from this Author9

Problem Tags

Community Treasure Hunt

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

Start Hunting!