Find the smallest value in array, which is the maximum of its row and column.
Example: in array shown below are two numbers which are max in their rows and columns, 16 and 15. 15 is smaller, so it should be on the output.
<16> 2 3 13 5 11 10 8 9 7 6 12 4 14 <15> 1
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers38
Suggested Problems
-
Sum all integers from 1 to 2^n
17389 Solvers
-
522 Solvers
-
428 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
397 Solvers
-
Count decimal digits of a number
234 Solvers
More from this Author40
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
There is no check on test-case number 2. ;-)
Ooops. Thanks José.