reshape an array?

KraftDiner bobrien18 at yahoo.com
Wed Mar 8 14:05:20 EST 2006


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...

help?!




More information about the Python-list mailing list