[ACCEPTED]-Numpy equivalent of MATLAB's cell array-numpy

Accepted answer
Score: 18

Matlab cell arrays are most similar to Python lists, since 9 they can hold any object - but scipy.io.loadmat 8 imports them as numpy object arrays - which 7 is an array with dtype=object.

To be honest 6 though you are just as well off using Python 5 lists - if you are holding general objects 4 you will loose almost all of the advantages 3 of numpy arrays (which are designed to hold 2 a sequence of values which each take the 1 same amount of memory).

More Related questions