Re: How to deal with big matrix?

*To*: mathgroup at smc.vnet.net*Subject*: [mg116637] Re: How to deal with big matrix?*From*: Oliver Ruebenkoenig <ruebenko at wolfram.com>*Date*: Tue, 22 Feb 2011 04:44:20 -0500 (EST)

On Mon, 21 Feb 2011, Szymon Roziewski wrote: > Hello there, > > I have quite big matrix with let say 1000 rows and 1100 columns. > Each of element of this matrix is a point on a surface e.g. {1.232,12.123} > How can I quickly get first element of each point for whole matrix and put > it in a vector (1000*1100 - this will be a length of that vector) without do > it in a nested loop (Do[Do[...]])? > And the similar to get the second element of each point into vector. > > kind regards, > Szymon Roziewski > Hi Szymon, does data = RandomReal[{0, 1}, {3, 4, 2}] data[[All, All, 1]] and Flatten[data[[All, All, 1]]] work for you? Oliver