unique - which occurrence of a repeated element"?

2 views (last 30 days)
unique has the option to specify which occurrence (first or last) or a repeated element is output when used in legacy mode.
Assuming that legacy mode will eventually be deprecated, what is the easiest way to get the functioning of occurrence in unique, going forward? (not using legacy mode)

Answers (1)

Walter Roberson
Walter Roberson on 28 Mar 2014
flip the matrix over before using unique() on it.

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!