Contents Previous Next Subchapters

Computing The Mean (Mlmode)
Syntax mean(x)
See Also colmean

Description
If x is a row vector, returns a scalar equal to the mean of the elements of x. Otherwise returns a row vector, with the same number of columns as x containing the average of the corresponding columns of x. The argument where x is an integer, real, double-precision, or complex matrix. If x is an integer matrix, the return value is double-precision. Otherwise, the return value has the same type as x

Example
If in Mlmode you enter,
     x = 1 : 3;
     mean(x)
O-Matrix will reply
     2
If you continue by entering
     x = [x ; x+1];
     mean(x)