Set intersection of two arrays

returns
the data common to both `C`

= intersect(`A,B`

)`A`

and `B`

,
with no repetitions. `C`

is in sorted order.

If

`A`

and`B`

are tables or timetables, then`intersect`

returns the set of rows common to both tables. For timetables,`intersect`

takes row times into account to determine equality, and sorts the output timetable`C`

by row times.

Was this topic helpful?