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.
116 Solvers
Back to basics 2 - Function Path
163 Solvers
Return elements unique to either input
553 Solvers
Getting the row and column location from a matrix
236 Solvers
148 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!