mean across rows and columns

4 ビュー (過去 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 Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by