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!!
3083 Solvers
Similar Triangles - find the height of the tree
203 Solvers
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
514 Solvers
Replace multiples of 5 with NaN
358 Solvers
407 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!