# combinations

## Description

generates all element combinations of input arrays `T`

= combinations(`A1,...,An`

)`A1,...,An`

. Each row of
the output table `T`

is a combination. These combinations are the same as
the Cartesian product of * n* sets of elements where the

*sets are represented by the input arrays*

`n`

`A1,...,An`

.The number of rows in

`T`

is the product of the number of elements in each input array. The number of rows is the same as the number of combinations.The number of variables in

`T`

is the same as the number of input arrays.The data type of each variable in

`T`

is the same as the data type of the corresponding input array.

## Examples

## Input Arguments

## Version History

**Introduced in R2023a**