MATLAB: Means of the 3rd dimension of a matrix

3rd dimension

AA = rand(3) I want a 2d matrix BB containing means of 3rd dimension of matrix A How I can do this smartly? Thanks

Best Answer

BB = mean(A, 3);
Related Question