zeroMean(a)

Transforms array a such that the new mean is zero.

zeroMean(A)

Transforms each column of matrix A such that each column has a zero mean.


See also standarize apply 


Example


a = ( 1, 3, 3, 6 );

zeroMean( a )

-2.25 -0.25 -0.25 2.75