Syntax: UNIQUE\INDICES x y idx { (index_expression) } The UNIQUE\INDICES command finds adjacent duplicate points in the vectors x and y. A duplicate point means that x[i] = x[i+1] and y[i] = y[i+1]. The vector idx is created, and will contain the indices of x and y where there are no adjacent duplicate points. If none are found, idx will not be made. If you wish to search a subset of x and y, use the optional (index_expression). Enclosing the index_expression in parenthesis allows you to have blanks within the expression. The index_expression can be a simple range, e.g., [1:10], or a mathematical expression, e.g., where(z=n). The index_expression can be used directly on the input vectors x and y, but then the output idx index vector will contain indices relative to [1:len(x[index_expression])].
Additional Information on:
To disable informational messages from the UNIQUE command, use the \NOMESSAGES qualifier.