-
2 Comments
Aurelien Queffurust
on 21 Feb 2012
does not work if numbers have 2 digits , for example : if x = [1 5 8 9 15 14 8 15]
Peter Wittenberg
on 29 Mar 2012
Yes, it only works for 1 to 9, but that is what the problem specified. It is a good solution.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!