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.
It dseon't mettar waht oedrr the lrettes in a wrod are.
652 Solvers
Back to basics 8 - Matrix Diagonals
781 Solvers
1143 Solvers
464 Solvers
450 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!