I've learned from this and similar solutions of the use of shiftdim with a negative number. This may well be handy for future programming. Thanks for showing us this feature.
900 Solvers
Find state names that end with the letter A
708 Solvers
519 Solvers
452 Solvers
206 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!