Problem 2818. Remove and Sort
Given a randomized array n, sort it and remove all odd integers.
n=5
y = [2 4]
Solution Stats
Problem Comments
-
2 Comments
Jean-Marie Sainthillier
on 9 Jan 2015
Why do you pass n in your function (and not x) ?
Mattias
on 9 Jan 2015
Agree with above. According to the description you are given the randomized array.
Solution Comments
Show commentsProblem Recent Solvers108
Suggested Problems
-
Remove any row in which a NaN appears
8762 Solvers
-
Find the two most distant points
2949 Solvers
-
Switch matrix to a column vector
372 Solvers
-
Flip the vector from right to left
10607 Solvers
-
Rotate a matrix for 180 degree
185 Solvers
More from this Author8
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!