フィルターのクリア

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 Center および File ExchangeHypothesis Tests についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by