Group intersection.
[c,ia,ib]=intersect(a,b)
INTERSECT 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 = A(IA) and C = B(IB).