Search code examples
pythonmatlabdata-structurescell

Alternative to Matlab cell data-structure in Python


I have a Matlab cell array, each of whose cells contains an N x M matrix. The value of M varies across cells.

What would be an efficient way to represent this type of a structure in Python using numpy or any standard Python data-structure?


Solution

  • Have you considered a list of numpy.arrays?