MATLAB: Mean of Matrix Rows matrixmeanrow For any matrix A, how would I subtract the row means from each row, so that each row has a mean of zero? Best Answer The row means would be calculated as the mean of dimension 2. Try this: A = rand(5);Anew = A - mean(A,2);Check = mean(Anew,2) % Confirm: Mean = 0 Related SolutionsMATLAB: Mean A=rand(76,5); m=mean(A,2); MATLAB: Rows a = rand(1000,5);b = min(a,[],2); Related QuestionCalculate 2 standard deviationsMean across rows and columnsCalculate mean of certain rowMean value of each rowHow to calculate variance
Best Answer