MATLAB: I have 5*10*9000 matrix. how can I average each 5*10 slices to get 9000 * 1 matrix. Please any helper? thanks

mean

3D to 1D

Best Answer

See if this does what you want:
M = rand(5,10,9000); % Create Data
MR = reshape(M, [], size(M,3)); % Reshape To 2D
Output = mean(MR,1).'; % Result