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.
2488 Solvers
819 Solvers
516 Solvers
Duplicate each element of a vector.
518 Solvers
Given a matrix, return the last eigen value
175 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!