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 sum of all the numbers of the input vector
32645 Solvers
17551 Solvers
214 Solvers
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
236 Solvers
466 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!