"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. :)
6103 Solvers
Back to basics 12 - Input Arguments
527 Solvers
Find the largest value in the 3D matrix
1064 Solvers
Get the elements of diagonal and antidiagonal for any m-by-n matrix
273 Solvers
561 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!