MATLAB: Mean of each column of a cell array that contains cell arrays

cell arrays

I have a cell array A(2×82). Cell array A contains in each cell cell arrays of different row sizes but equal column sizes. To be specific the column sizes are always 1.
First I want to combine the two rows of A and then calculate the mean of each column of cell array A. As a result i would get a 1×82 matrix.
Any suggestion? Thanks in advance, Peter

Best Answer

cellfun(@mean, A) %provided you want a 2 x 82 numeric result.