Problem 774. Remove from a 2-D matrix all the rows that contain at least one element less than or equal to 4
Example:
in = magic(5)
in =
17 24 1 8 15
23 5 7 14 16
4 6 13 20 22
10 12 19 21 3
11 18 25 2 9
out =
23 5 7 14 16
Solution Stats
Problem Comments
-
11 Comments
Show
8 older comments
Chad Gilbert
on 19 Jul 2013
I agree you should change the test to match the question. Also, perhaps add more than one test.
Andrew Dobrovolc
on 13 Sep 2017
Your test suite is has an incorrect answer, the last row contains a 4.
Dyuman Joshi
on 29 Jun 2021
Test suite has been corrected and additional cases are added.
Solution Comments
Show commentsProblem Recent Solvers136
Suggested Problems
-
6311 Solvers
-
Find the two most distant points
2880 Solvers
-
608 Solvers
-
689 Solvers
-
Count decimal digits of a number
227 Solvers
More from this Author10
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!