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!!
502 Solvers
Construct an index vector from two input vectors in vectorized fashion
175 Solvers
3071 Solvers
Fahrenheit to Celsius converter
358 Solvers
compress sequence into intervals
53 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!