how to calculate max and mean for big matrix 10*155 but i need to pick the value after coloumn 50?

1 回表示 (過去 30 日間)
Do i need to create a new matrix and input all value from col 50 to 155? or i can do it in some other ways but not to make new matrix?

採用された回答

Mischa Kim
Mischa Kim 2014 年 2 月 28 日
編集済み: Mischa Kim 2014 年 2 月 28 日
Benjamin, use
max_mat = max(mat(:,51:end),[],2)
mean_mat = mean(mat(:,51:end),2)
assuming you want to compute max and mean for each row.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeShifting and Sorting Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by