Command Reference : Matrix Language Reference
  
 
@uniquevals
Vector or svector of unique values of object.
Syntax: @uniquevals(m)
m: matrix, vector, svector
Return: vector, svector
Returns a vector or svector containing the list of unique values in the object specified by m.
If m is a vector or matrix, @uniquevals will return a vector object containing the unique elements of the svector or matrix.
If m is an svector, @uniquevals will return an svector of the unique values in m.
Examples
vector vals = @uniquevals(x)
returns a vector containing the unique values in x.
vector ivals = @sort(@uniquevals(@round(x)))
returns a vector of the unique values of X, rounded to the nearest integer, and sorted from low to high.