The following Matlab project contains the source code and Matlab examples used for quickly generate all combination of integers up to specified value in each dimension . Quickly generate all combination of integers up to specified value in each dimension. There are other codes to do this, but this one has a different calling structure that may be more amenable. It is also very fast.
The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.