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!!
Find the longest sequence of 1's in a binary sequence.
3374 Solvers
203 Solvers
134 Solvers
Duplicate each element of a vector.
518 Solvers
Check that number is whole number
1072 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!