imat_group/intersect


Purpose

Group intersection.

Syntax

[c,ia,ib]=intersect(a,b)

Description

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).

See Also

imat_group/union