A nice one-liner is always good :)
Number of 1s in the Binary Representation of a Number
356 Solvers
Matrix indexing with two vectors of indices
485 Solvers
376 Solvers
248 Solvers
379 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!