Contents Previous Next Subchapters

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

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.

     x = [{0., 2., 4.}, {0., -1., 1.}]
     [ 2 , 0 ]