juice
soda
union returns the combined values from Group1 and Group2 with no repetitions. In this case, C is
equivalent to the categories of the concatenation, students.
All of the categorical arrays in this example were nonordinal. To combine ordinal categorical arrays,
they must have the same sets of categories including their order.
See Also
categorical | categories | summary | union | cat | horzcat | vertcat
Related Examples
•
“Create Categorical Arrays” on page 8-2
•
“Combine Categorical Arrays Using Multiplication” on page 8-22
•
“Convert Text in Table Variables to Categorical” on page 8-6
•
“Access Data Using Categorical Arrays” on page 8-24
More About
•
“Ordinal Categorical Arrays” on page 8-36
Combine Categorical Arrays
8-21
Précédent

- 325/1450

Suivant