Scilab Function

union - extract union components of a vector

Calling Sequence

[v, [ka,kb]]=union(a,b)

Parameters

Description

union(a,b) returns a sorted row vector which retains the unique entries of [a(:);b(:)].

[v,ka,kb]=union(a,b) also returns index vectors ka and kb such that v is a sorted combination of the entries a(ka) and b(kb).

Examples

See Also