imat_group/union


Purpose

Group union.

Syntax

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

Description

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

See Also

imat_group/intersect