Cartesian product

版本 1.0.1 (33.9 KB) 作者: Eric Ogier
Implementation of cartesian product with sampling of tuples
91.0 次下载
更新时间 2025/6/17

查看许可证

This implementation of cartesian product includes methods providing:
  • The complete set resulting from the cartesian product of several subsets, returned as numeric/string matrix, two-dimensional cells or table,
  • The successive tuples from the first index to the cardinal of the resulting set (without memory pre-allocation), returned numeric/string vector or one-dimensional cell.
These methods support subsets including both numeric and non-numeric elements, defined as numeric vectors or one-dimensional cells.

引用格式

Eric Ogier (2025). Cartesian product (https://ww2.mathworks.cn/matlabcentral/fileexchange/76977-cartesian-product), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2018a
与 R2016a 及更高版本兼容
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.1

Update for string type arguments.
Adding of a method to get the cartesian product as a table.

1.0.0.0