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

braingateway braingateway at gmail.com
Mon Nov 8 18:32:52 EST 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:
{'aaa','a'}
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,

LittleBigBrain



More information about the SciPy-User mailing list