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
-
1318 Solvers
-
157 Solvers
-
743 Solvers
-
Find the index of n in magic(n)
252 Solvers
-
10079 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!