"Sam " <email@example.com> wrote in message news:firstname.lastname@example.org... > Hi all, > I am trying to created a matrix that contains all possible permutations of > [1:1:36]. It is obvious that this is too large a matrix. One option is to > divide the huge matrix into many smaller pieces. But if I do not know how > large a matrix will be, it would not be possible to have matlab divide it. > Does anyone know what I can do in this case?
Why are you trying to create this matrix? It will be factorial(36)-by-36 or of size [3.7199e+41, 36]. You don't have anywhere NEAR enough memory to store it, and processing 1000 rows per second would require about 1e31 years to process the whole thing.
I recommend you describe the problem you're trying to solve using these permutations so that someone can suggest alternate approaches that don't require such LONG periods of time.