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.
3258 Solvers
840 Solvers
Get the area codes from a list of phone numbers
538 Solvers
979 Solvers
Find out missing number from a vector of 9 elements
248 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!