Do not use oveloaded opetartors in center_.

parent f6d86a72
......@@ -30,10 +30,12 @@ if nargin<2
geometric = false;
end
m = mean(o.data);
if geometric
o = o/mean(o, true);
o.data = bsxfun(@mrdivide, o.data, m);
else
o = o-mean(o, false);
o.data = bsxfun(@minus, o.data, m);
end
%@test:1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment