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 alphabetic word product
2335 Solvers
354 Solvers
587 Solvers
Remove the two elements next to NaN value
418 Solvers
417 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!