I have a 3x55 matrix of int
s. I want to center each row around its mean. This gets the right answer, but it's ugly:
row_mean = mean(points,[2])
points[1,:] = points[1,:] - row_mean[1]
points[2,:] = points[2,:] - row_mean[2]
points[3,:] = points[3,:] - row_mean[3]
Any ideas?