PDA

View Full Version : Array size in Octave


in_flu_ence
May 12th, 2009, 07:56 AM
Anyone know what is the maximum size that an array can take in octave?

I have 120000 values wanting to put in an array
when I did so, I found that I can only get 100000?

what I did is

M=dlmread('test.csv','','a1..a120000')
mlen=length(M) %This shows 100000

Any advice?

in_flu_ence
May 14th, 2009, 09:00 AM
Apparently no one responded but this does appear that I can only have 100K elements in an array within Octave. After trying to put my script with 100K elements and 100001 elements, both gives a length of 100K.

Hope someone will pick up the point and keep posted although not a ubuntu issue after all.

jpkotta
May 15th, 2009, 12:03 AM
It probably has something to do with your file or the import function (what is dlmread() from?). Octave should no trouble with arrays of several million elements.