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 union of two arrays

returns
the combined data from `C`

= union(`A,B`

)`A`

and `B`

with
no repetitions. `C`

is in sorted order.

If

`A`

and`B`

are tables or timetables, then`union`

returns the combined set of rows from both tables. For timetables,`union`

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

by row times.

Was this topic helpful?