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.
Find relatively common elements in matrix rows
865 Solvers
Matrix with different incremental runs
106 Solvers
Get the length of a given vector
3583 Solvers
Find a subset that divides the vector into equal halves
332 Solvers
272 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!