KraftDiner wrote: > I have a 2D array. Say it is 10x10 and I want a 1D Array of 100 > elements... > What is the syntax? > > oneD = reshape(twoD, (100,1)) > or > oneD = reshape(twoD, (1,100)) > > One I guess is the transpose of the other but both seem to be > arrays of arrays...
Or oneD = ravel(twoD) -- Robert Kern [EMAIL PROTECTED] "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco -- http://mail.python.org/mailman/listinfo/python-list