User`s guide

R2012a
7-10
input argument to unique, union, intersect, setdiff, setxor, and ismember. For
example:
[C,IA,IC] = unique([9 9 1],'R2012a')
C =
1 9
IA =
3
1
IC =
2
2
1
If the changes adversely affect your code, you can specify 'legacy' to preserve the
current behavior. For example:
[C,IA,IC] = unique([9 9 1],'legacy')
C =
1 9
IA =
3 2
IC =
2 2 1