The test suite should include a matrix where the columns have different averages. Also, I think that "subtract" would be easier to understand than "omit".
Totally agree with James!!!
Ctrl-C, Ctrl-V from bsxfun's help. Exactly how I like it!
Select every other element of a vector
20361 Solvers
Find a subset that divides the vector into equal halves
332 Solvers
321 Solvers
Who has power to do everything in this world?
318 Solvers
420 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!