Contents Previous Next Subchapters

Computing The Mean Of Each Column
Syntax colmean(x)
See Also colsum , colstd , colmedian , colmode , colmad , colmse

Description
Returns a row vector containing the average of each column of x, where x is an integer, real, double-precision, or complex matrix. The return value has the same type and column dimension as x. If x is an integer matrix, the fractional part of the return value is dropped.

Example
     x = [{0., 2., 4.}, {0., -1., 1.}]
     colmean(x)
returns
     [ 2 , 0 ]