Search code examples
matlabcell-array

In matlab is cell array of cell arrays equivalent to list of list


I'm trying to implement functionality in matlab where I need the equivalent data structure to a list of lists. Based on what I have found is a cell array of cell arrays a good equivalent in matlab.

Thanks.


Solution

  • Yes, roughly... With the exception that lists are sequential-access and cell-arrays are random-access. ie the cell-array is in fact an array, not a list. I don't think there is a list analogue in MatLab, so this is the closest you'll get.