Problem 42515. Remove All elements less than 5
Given an input vector x, remove all elements of x less than 5 .
Example:
Input x = [ 1 2 5 7 3 ] Output y is [ 5 7 ]
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers141
Suggested Problems
-
Compute a dot product of two vectors x and y
1024 Solvers
-
Sum the numbers on the main diagonal
599 Solvers
-
07 - Common functions and indexing 6
460 Solvers
-
5744 Solvers
-
Matlab Basics - Set unwanted parts of a vector to zero
256 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!