Merge branch 'scale_generalize' into 'master'

Generalize scale to handle also shift (e.g., subtracting out the mean) and use bsxfun.

See merge request !62
2 jobs for master in 16 seconds
latest