unique - which occurrence of a repeated element"?

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)

flip the matrix over before using unique() on it.

Categories

Find more on Linear Algebra in Help Center and File Exchange

Asked:

on 28 Mar 2014

Answered:

on 28 Mar 2014

Community Treasure Hunt

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

Start Hunting!