I have a 32×1 cell array, each cell is a 600×1 matrix. I originally wanted to average the matrix elements across the 32 cells, the result being a 600×1 mean matrix. Purely by accident I discovered that
MyCellArray{:}
results in the desired mean matrix, while
x = MyCellArray{:}
results in the contents of the first array. I would like to know why they are different, and how can I automatically assign the ans from MyCellArray{:}?
Best Answer