Scilab Function

unique - extract unique components of a vector

Calling Sequence

[N, [k]]=unique(M)

Parameters

Description

unique(M) returns a vector which retains the unique entries of M in ascending order.

If required the output argument k contains the position of the first encountered unique entries.

Examples

See Also