removes the mean
[z,mu] = nan_center(x,DIM,W)
x with removed mean along dimension DIM
mean
input data
dimension
column
row
first DIMENSION, with more than 1 element
weights to computed weighted mean (default: [], all weights = 1)
features: - can deal with NaN's (missing values) - weighting of data - dimension argument - compatible to Matlab and Octave