Type representing sequences
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.
Type::Product is the type of sequences of
objects of different types.
obj must have the same number of arguments
as the sequence
typedef. The elements of
checked one after another: the first element of
checked against the type given by the first element of
so on. All elements and types must match.
This type does not represent a property.
The argument is a sequence of a positive integer followed by an identifier:
testtype((5, x), Type::Product(Type::PosInt, Type::Unknown))
Is the argument is a sequence of five positive integers?
testtype((5, 3, 5, -1, 0), Type::Product(Type::PosInt $ 5))
Any MuPAD® object