Couldn't did it without binbin's help... anyway, absolutely nice problem! worth look into it.
Glad you liked it!
good work!perfect
it works in matlab r2015a. LOL
One of the best Cody solutions !
Number of 1s in the Binary Representation of a Number
356 Solvers
First non-zero element in each column
593 Solvers
701 Solvers
331 Solvers
549 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!