MATLAB: How to average specific collumn and specific rows of a matrix matrix I have a 1000 x 9 matrix that I want to average the last 3 columns and put the result in a 1000 x 1 matrix. how should I do it ? Best Answer Where M is the old matrix, and N the new:N = mean(M(:,7:9),2) Related SolutionsMATLAB: Average of terms mean(x(1:num)); %where num is the number you want to mean to. MATLAB: Efficient Row x Collumn multiplication sum(A'.*B) Related QuestionHow to create matrix from another matrixMatrix row extraction helpHow to calculate averages for each rows from a specific column to a specific column in a matrixHow to average specific rows of all columnsDeleting specific Rows in a matrixAverage
Best Answer