필터 지우기
필터 지우기

How do I average specific collumn and specific rows of a matrix?

조회 수: 2 (최근 30일)
farzad
farzad 2018년 1월 7일
편집: Stephen23 2018년 2월 4일
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 ?

채택된 답변

Stephen23
Stephen23 2018년 2월 4일
편집: Stephen23 2018년 2월 4일
Where M is the old matrix, and N the new:
N = mean(M(:,7:9),2)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Hypothesis Tests에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by