Wavelet Toolbox
  Go to function:
    Search    Help Desk 
wcommon    Examples

Find common elements.

Syntax

Description

wcommon is a general utility.

For two vectors X and Y with integer components, [XI,YI] = wcommon(X,Y)
returns two vectors with 0 and 1 components such that:

XI(k) = 1 if X(k) belongs to Y; otherwise XI(k) = 0 and
YI(j) = 1 if Y(j) belongs to X; otherwise YI(j) = 0.

Examples



[ Previous | Help Desk | Next ]