Please note that the recommended version of Scilab is 6.0.0. This page might be outdated.
See the recommended documentation of this function
mean (row mean, column mean) of vector/matrix entries
y=mean(x) y=mean(x,'r') y=mean(x,'c') y=mean(x,'m')
real vector or matrix
scalar or vector
For a vector or a matrix
in the scalar
y the mean of all the entries of
y=mean(x,'r') (or, equivalently,
is the rowwise mean. It returns a row vector:
y=mean(x,'c') (or, equivalently,
is the columnwise mean. It returns a column vector:
y=mean(x,'m') is the mean along the first non singleton
dimension of x (for compatibility with Matlab).
A=[1,2,10;7,7.1,7.01]; mean(A) mean(A,'r') mean(A,'c') A=matrix(1:12,[1,1,2,3,2]); // in this case mean(A,'m') is equivalent to mean(A,3), the first non singleton dimension of A y=mean(A,'m')