function x=zeromean(x,dim)
% zeromean(x,dim): make x zero mean 
% 	if x is a matrix, operate on each ROW independently
x=addnorm(@(y)mean(y,dim),x);

