imat_group/setdiff


Purpose

Group difference.

Syntax

c=setdiff(a,b)
[c,i]=setdiff(a,b)

Description

SETDIFF returns the IMAT_GROUP entities in IMAT_GROUP A that are not in IMAT_GROUP B. Both A and B must be scalar IMAT_GROUP objects. The result will be sorted.

I is an index vector such that C = A(I).

See Also

imat_group/setxor