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
Replace NaNs with the number that appears to its left in the row.
2057 Solvers
193 Solvers
Back to basics 19 - character types
228 Solvers
179 Solvers
245 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!