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
-
3363 Solvers
-
272 Solvers
-
Back to basics 3 - Temp Directory
372 Solvers
-
Back to basics 17 - white space
272 Solvers
-
Try 1.5.4: Celsius to Fahrenheit
831 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!