%% Mean of Single-Precision Array
% Create a single-precision vector of ones and compute its single-precision mean.

A = single(ones(10,1));
M = mean(A,'native')

%
% The result is also in single precision.

class(M)

% Copyright 2012 The MathWorks, Inc.