%% Mean of 3-D Array
% Create a 4-by-2-by-3 array of integers between 1 and 10 and compute the mean values along the second dimension.

rng('default')
A = randi(10,[4,2,3]);
M = mean(A,2)

% Copyright 2015 The MathWorks, Inc.