scales a matrix component between -1 and 1