mean(a)

Returns the mean of the entries of array a.

mean(A)

Returns an array with the mean of each column of matrix A.

mean(d)

Returns the theoretical mean of distribution d.


See also linearreg corrcoeff variance distribution 


Example


a = ( 1, 2, 3, 4, 5 )

( 1, 2, 3, 4, 5 )

mean( a )

3