Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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?