How to sum the minor number of each line in a matrix?
1 回表示 (過去 30 日間)
古いコメントを表示
The question its in the title, thanks
0 件のコメント
回答 (1 件)
Erivelton Gualter
2019 年 11 月 20 日
Given matrix A as:
A = [9 6 3;
8 5 2;
7 4 1]; % Sample Matrix
minA = min(A,[],2); % Returns min value for each line (row)
sumMinA = sum(minA); % Returns the sum of the min values
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で NaNs についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!