T = combinations(A1, A2, ...)
| Parameter | Description |
|---|---|
| A1, A2, ... | Input arrays. Each input is converted to a column before the combinations are formed. |
| Parameter | Description |
|---|---|
| T | Table containing one row for each combination of input elements. |
combinations forms a table containing the Cartesian product of the supplied arrays.
When an input variable has a name, that name is reused as the corresponding table variable name.
A = categorical({'small','large'}); B = categorical({'red','blue'}); T = combinations(A, B)
| Version | Description |
|---|---|
| 2.0.0 | initial version |