Even though this problem is simple, it would be helpful to expand the test suite to prevent gaming the system.
This user (ALBERT ALEXANDER STONIER) appears to have gamed the system, with fraudulent "likes" of this unremarkable solution submitted by 'sock-puppet' accounts. —DIV
Return the largest number that is adjacent to a zero
3752 Solvers
The Answer to Life, the Universe, and Everything
383 Solvers
find the maximum element of the matrix
349 Solvers
Back to basics - mean of corner elements of a matrix
297 Solvers
Sum the 'edge' values of a matrix
232 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!