Group union.
[c,ia,ib]=union(a,b)
UNION returns the IMAT_GROUP based on the input IMAT_GROUP A which has entities common to both A and B. Both A and B must be scalar IMAT_GROUP objects. The result will be sorted.
IA and IB are indices such that C is a sorted combination of A(IA) and B(IB).