Find maximum value of each row in a double matrix
1 回表示 (過去 30 日間)
古いコメントを表示
I have a matrix A double with columns and rows. All the data of A are numbers. I would like to find the maximum value of each row in this matrix.
I tried:
for i=length(A)
MAXIMUMO(i)=max(A(i,:))
end
But it keep onle the last row maximum, whereas the rest data are zero.
Could you please help me?
0 件のコメント
採用された回答
KALYAN ACHARJYA
2021 年 2 月 21 日
編集済み: KALYAN ACHARJYA
2021 年 2 月 21 日
"I would like to find the maximum value of each row in this matrix"
max_row=max(matrix')
%............Note on transpose
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!