Skip to content
Snippets Groups Projects
Verified Commit bae1b222 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Compatibility fix: in geometric centering, use @rdivide instead of @mrdivide

@rdivide is actually more correct, because we’re not doing an
element-by-element division.

And, more importantly, MATLAB R2009b does not accept @mrdivide in bsxfun.
parent 04547e32
No related branches found
No related tags found
No related merge requests found
Pipeline #1871 passed with warnings
...@@ -33,7 +33,7 @@ end ...@@ -33,7 +33,7 @@ end
m = mean(o.data); m = mean(o.data);
if geometric if geometric
o.data = bsxfun(@mrdivide, o.data, m); o.data = bsxfun(@rdivide, o.data, m);
else else
o.data = bsxfun(@minus, o.data, m); o.data = bsxfun(@minus, o.data, m);
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment