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.
2997 Solvers
3152 Solvers
820 Solvers
Back to basics 8 - Matrix Diagonals
785 Solvers
Is this triangle right-angled?
2513 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!