This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Factor a set of vectors into a cartesian product

MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.




solvelib::splitVectorSet(S) returns a list S1, …, Sn of sets of complex numbers such that S is the cartesian product of the Si, or FAIL if such factorization could not be found.

The set S may be finite or infinite, of any type.


Example 1

We split a finite set of vectors into its factors:

solvelib::splitVectorSet({[1, 2], [1, 3], [0, 2], [0, 3]})

The following set cannot be written as a cartesian product:

solvelib::splitVectorSet({[1, 2], [0, 2], [0, 3]})

Example 2

Infinite sets can also be handled:

S:= Dom::ImageSet([k*PI, l*PI+2], [k, l], [Z_, Z_])


delete S:



Set of vectors

Return Values

List of type DOM_LIST, or FAIL

See Also

MuPAD Functions

Was this topic helpful?