MATLAB Answers

unique - which occurrence of a repeated element"?

2 views (last 30 days)
Matthew
Matthew on 28 Mar 2014
Answered: Walter Roberson on 28 Mar 2014
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)

  0 Comments

Sign in to comment.

Answers (1)

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

  0 Comments

Sign in to comment.

Sign in to answer this question.