I have a 9 * 9 matrix and I want to reduce each row in the column, to the average of that column. How do I do this? For example
a=[3 2 3;1 2 3; 2 2 3]b=mean(a)=[2 2 3]a-b=[1 0 1; -1 0 1;0 0 1]
(I want the matrix after reduce the mean)
matrix helpmatrix manipulation
a=[3 2 3;1 2 3; 2 2 3]b=mean(a)=[2 2 3]a-b=[1 0 1; -1 0 1;0 0 1]
Best Answer