MATLAB: Is MyCellArray{:} different than x = MyCellArray{:}

access cell informationcell arrayscolonmean

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

Thank you for your responses but never mind this question. I feel sort of ridiculous about this, but my code for calculating the mean matrix was wrong. The ans that resulted from MyCellArray{:} was simply the last matrix, and x = MyCellArray{:} results in the first matrix.
For those of you who wish to calculate the mean of each matrix element across the 32 cells, assuming the size of each cell is the same (600x1 in this case) without using loops, I figured out the following code:
meanArray = arrayfun(@(y) mean(cellfun(@(x) x(y), MyCellArray)), [1:600])'