Returning a "greater than" vector - MATLAB Cody - MATLAB Central

Problem 1919. Returning a "greater than" vector

Difficulty:Rate

Given a vector, v, return a new vector , vNew, containing only values > n.

For example:

v=[1 2 3 4 5 6]
n=3
vNew = [4 5 6]

Solution Stats

67.8% Correct | 32.2% Incorrect
Last Solution submitted on Nov 17, 2025

Problem Comments

Solution Comments

Show comments
Join Cody Contest 2025 — Have Fun and Win Prizes!
...
We’re excited to invite you to Cody Contest 2025! 🎉 Pick a team,...

Problem Recent Solvers268

Suggested Problems

More from this Author3

Problem Tags

Community Treasure Hunt

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

Start Hunting!