-
2 Comments
Paul Berglund
on 28 Dec 2014
Note that this will fail on a short sequence e.g. [10 20 21 40]
Alfonso Nieto-Castanon
on 5 Jan 2015
I believe changing mode to median should work in all non-ambiguous cases (length>3)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!