필터 지우기
필터 지우기

mean across rows and columns

조회 수: 6 (최근 30일)
harley
harley 2013년 10월 4일
답변: Walter Roberson 2013년 10월 4일
i have a code that produces 10 x 5 matrix, i want it to find the mean across the rows rather than down each column.
for a=(1:5);
% some code here
Major1=(MJ_V11);%(0:end); %10 x 5 matrix here
Major11 = mean(Major1);
end

채택된 답변

Walter Roberson
Walter Roberson 2013년 10월 4일
mean(Major1, 2)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by