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 the sum of all the numbers of the input vector
32634 Solvers
Vectorize the digits of an Integer
272 Solvers
Find nearest prime number less than input number
274 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
3897 Solvers
5777 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!