harmmean
Harmonic mean of a data set.
📝Syntax
m = harmmean(X)
m = harmmean(X, dim)
m = harmmean(X, vecdim)
m = harmmean(X, 'all')
m = harmmean(..., nanflag)
📄Description

harmmean computes the harmonic mean of numeric data.

By default, NaN values are included. Use omitnan to ignore them.

💡Examples
X = reshape(1:30, [3 5 2]);
m = harmmean(X, [1 2])
🔗See Also
geomeanmeanmedian
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub