Next: , Previous: , Up: table   [Contents]


8.2.59.58 table.intersect

Method: [C, ia, ib] = intersect (A, B)

Set intersection.

Computes the intersection of two tables. The intersection is defined to be the unique row values which are present in both of the two input tables.

Returns: C - A table containing all the unique row values present in both A and B. ia - Row indexes into A of the rows from A included in C. ib - Row indexes into B of the rows from B included in C.