A nice one-liner is always good :)
Getting the absolute index from a matrix
211 Solvers
Make a run-length companion vector
512 Solvers
Permute diagonal and antidiagonal
224 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
3651 Solvers
302 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!