Return the unique elements of x, sorted in ascending order. If x is a row vector, return a row vector, but if x is a column vector or a matrix return a column vector. — Function File: unique (A, 'rows')
Return the unique rows of A, sorted in ascending order. — Function File: [y, i, j] = unique (x)
Return index vectors i and j such that
x(i)==y
andy(j)==x
.Additionally, one of 'first' or 'last' can be given as an argument. 'last' (default) specifies that the highest possible indices are returned in i, while 'first' means the lowest.