unique - which occurrence of a repeated element"?
Show older comments
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
on 28 Mar 2014
0 votes
flip the matrix over before using unique() on it.
Categories
Find more on Linear Algebra 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!