Since Cody, I dislike for-loops, but your solution is way simpler than my own algorithm. Mission accomplished...
Nevertheless, I would hope for a non-looped piece of code. Let's see in phase 3.
829 Solvers
Getting the indices from a vector
3206 Solvers
Implement simple rotation cypher
943 Solvers
Natural numbers in string form
347 Solvers
Find indices of diagonal elements
50 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!