MATLAB: How to mean multiple matrices, element by element in a n*n cell array

mean

WeChat Screenshot_20190421200025.png
I've got a data looks like this. size(16*6) cell array. I want to get the average of each columns, but keep the size of each matrice(650*1).

Best Answer

If I call your cell array C,
M=cell2mat(reshape(C,1,16,[]));
result = mean(M,2)