Cartesian product

Version 1.0.1 (33,9 KB) von Eric Ogier
Implementation of cartesian product with sampling of tuples
91 Downloads
Aktualisiert 17. Jun 2025

Lizenz anzeigen

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.

Zitieren als

Eric Ogier (2026). Cartesian product (https://de.mathworks.com/matlabcentral/fileexchange/76977-cartesian-product), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2018a
Kompatibel mit R2016a und späteren Versionen
Plattform-Kompatibilität
Windows macOS Linux
Version Veröffentlicht Versionshinweise
1.0.1

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

1.0.0.0