geomean

Returns the geometric mean of x.

Syntax

geomean(x)

Inputs

x
Any real scalar | vector | matrix
Type: double | integer | char | string | logical | struct | cell
Dimension: scalar | vector | matrix

Outputs

R
Resulting scalar | vector | matrix

Example

Simple geomean example.

Data = [ 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 ]
R = 18.6495