[SciPy-User] Scipy.IO.savemat can NOT save string Cell/List correctly

braingateway braingateway@gmail....
Mon Nov 8 17:32:52 CST 2010

Hi everyone,

>>> scell=['aaa','a']
>>> scell
['aaa', 'a']
>>> scipy.io.savemat('g:\\trycellscipy.mat',{'mycell':scell})
We would expect to have a cell array in MATLAB:
or at least to have a string array like:
['aaa','a ']
But scipy.IO give:
['aa ','aa ']
Which is completely wrong.
Any one has any solution for this?

Thanks ahead,


More information about the SciPy-User mailing list