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

braingateway braingateway@gmail....
Mon Nov 8 17:46:02 CST 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