[ACCEPTED]-Numpy equivalent of MATLAB's cell array-numpy
Accepted answer
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).
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.