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!!
17912 Solvers
Getting the indices from a matrice
368 Solvers
252 Solvers
244 Solvers
Is this triangle right-angled?
2552 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!