This problem was fun. I was able to find a better way to solve beat my own solution. Not the best way though. But lot better.
Make the vector [1 2 3 4 5 6 7 8 9 10]
35577 Solvers
390 Solvers
445 Solvers
264 Solvers
379 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!