Geometric mean
returns
the geometric mean of
m = geomean(X)X.
If X is a vector, then geomean(X) is the
geometric mean of the elements in X.
If X is a matrix, then geomean(X) is a row
vector containing the geometric mean of each column of X.
If X is a multidimensional array, then
geomean operates along the first nonsingleton dimension of
X.
specifies whether to exclude m = geomean(___,nanflag)NaN values from the calculation, using any
of the input argument combinations in previous syntaxes. By default,
geomean includes NaN values in the calculation
(nanflag has the value 'includenan'). To exclude
NaN values, set the value of nanflag to
'omitnan'.