Good problem. You should generalise it with more tests (size of the matrix, different gap...).
I suspect that my solution isn't correct.
This doesn't work..Good for cody!!
What is the next step in Conway's Life?
655 Solvers
Back to basics 25 - Valid variable names
294 Solvers
Find the largest value in the 3D matrix
1067 Solvers
Return the first and last characters of a character array
3688 Solvers
242 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!