Matlab out of memory error behave differently in one and two dimensional arrays -
Today I need to assign 100,000 vector vectors to Matlab. I try to use it simply:
a = ones (100000);
In my opinion, the answer to anger:
Type support memory for your options outside memory
< P> This is strange because I have Matlab 64 bits running on 64 bit machine with 8BB RAM. I had tried many "to solve memory errors in Metlab" so that recipe can be done in sleep or elsewhere but there is no luck yet. Now that I like something, I am more confused:
one = people (10000,10000);
My machine runs without problems.
Does this mean that Matlab has some mechanism to limit the number of elements of a vector in a one-dimensional space? Nowadays I need to allocate vectors with a size of 100000. I / O
Now, as written in the comments, and such a method ( a = ones (100000);
) creates a 100000x100000 matrix, which is not what you want.
I suggest you:
a = ones (1, 100000);
Since it creates a vector rather than the matrix.
Comments
Post a Comment