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

17 Solutions

8 Solvers

Last Solution submitted on May 09, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers8

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!