the last test case fails due to an incorrect call of the function. also, could you stick %% between each of the test cases so that they show up as separate?
Lookup cheat
Number of 1s in the Binary Representation of a Number
359 Solvers
234 Solvers
Back to basics 8 - Matrix Diagonals
786 Solvers
Create a square matrix of multiples
386 Solvers
467 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!