J-G, thanks for the problem. Could you add some more information about expected inputs and outputs? An example and some more tests would be helpful too. If your test suite has exactly one test, it's trivial to write a correct answer.
554 Solvers
395 Solvers
07 - Common functions and indexing 1
354 Solvers
Let's get back to school, and create multiplication tables
156 Solvers
305 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!