love the "unique" command!
Do not cheat yourself,OK?
I added additional cases to the test suite, so this attempted solution is incorrect now.
1434 Solvers
869 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
3930 Solvers
494 Solvers
484 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!