Finding the max of certain columns
1 回表示 (過去 30 日間)
古いコメントを表示
I have a 4x7 matrix and i am trying to find the max of the 2nd 3rd and 4th column to create a 1x3 matrix how would i do that?
0 件のコメント
回答 (1 件)
Ameer Hamza
2020 年 9 月 20 日
編集済み: Ameer Hamza
2020 年 9 月 20 日
M % 4x7 matrix
x = max(M(:,[2 3 4])); % 1x3 vector of max values
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!