Re: [Numpy-discussion] Conversion of matlab import containing objects into 3d array

2010-02-05 Thread Travis Oliphant
On Feb 5, 2010, at 2:12 PM, Angus McMorland wrote: Hi all, I'm trying to import data from a matlab file using scipy.io.loadmat. One of the variables in the file imports as an array of shape (51,) of dtype object, with each element being an array of shape (23,100) of dtype float. How do I conve

Re: [Numpy-discussion] Conversion of matlab import containing objects into 3d array

2010-02-05 Thread Matthew Brett
HI, > I'm trying to import data from a matlab file using scipy.io.loadmat. > One of the variables in the file imports as an array of shape (51,) of > dtype object, with each element being an array of shape (23,100) of > dtype float. How do I convert this array into a single array of dtype > float

[Numpy-discussion] Conversion of matlab import containing objects into 3d array

2010-02-05 Thread Angus McMorland
Hi all, I'm trying to import data from a matlab file using scipy.io.loadmat. One of the variables in the file imports as an array of shape (51,) of dtype object, with each element being an array of shape (23,100) of dtype float. How do I convert this array into a single array of dtype float with s