"cat" is a really nice touch for concatenation of those arrays! your solutions never fail my expectation.
by the way, i saw that "sub-func" comment...:)
Calling the two sub-functions the right way will not hurt your score. Great work though. :)
Number of 1s in the Binary Representation of a Number
359 Solvers
1163 Solvers
Vectorize the digits of an Integer
272 Solvers
Side of an equilateral triangle
2740 Solvers
2755 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!