[SciPy-User] Scipy.IO.savemat can NOT save string Cell/List correctly
braingateway
braingateway at gmail.com
Mon Nov 8 18:46:02 EST 2010
Sorry It is my fault. I misunderstood the tutuorial.
it actually need numpy.object not any other 'object' in numpy...
Sorry to bother everyone.
LittleBigBrain
braingateway :
> 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 ']
>
Sorry It is my fault. I misunderstood the tutuorial.
it actually need numpy.object not any other 'object' in numpy...
Sorry to bother everyone.
LittleBigBrain
> Which is completely wrong.
> Any one has any solution for this?
>
> Thanks ahead,
>
> LittleBigBrain
>
More information about the SciPy-User
mailing list