MATLAB: Finding the average value average could anyone help me to find the average of A if A=[1 2 3 4; 5 6 7 8; 9 10 11 12; 13 14 15 16;] B=[10 20 30 40] i want to add and divide first column by 10, second column by 20,third column by 30 and fourth column by 40. Best Answer bsxfun(@rdivide,sum(A,1),B)ans = 2.8 1.6 1.2 1 Related SolutionsMATLAB: Convert a 1*16 matrix to a 2*8 matrix >> V = [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16];>> reshape(V,[],2).'ans = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 MATLAB: How to reshape this matrix result = reshape(A.',2,[]).' Related QuestionAverageRepeating blocks of N rows M timesMoving averageHow do you find the average of specific columns for all rowsMatrix AveragingHow to flip every 5th row and column in matrixAveraging data
Best Answer