Subtract every element of array from one another and find the sum
1 回表示 (過去 30 日間)
古いコメントを表示
I want to subtract each element from one another and find the sum of each column for every element. Array is [47.07 49.39 56.87 69.04 72.80 72.68]
1 件のコメント
ME
2019 年 11 月 1 日
I’m not 100% sure I follow. Could you possibly post your expected result from this?
回答 (1 件)
Walter Roberson
2019 年 11 月 1 日
A.' - A
4 件のコメント
Walter Roberson
2019 年 11 月 2 日
[~, maxidx] = max(YourMatrix(:,3)*YourMatrix(:,4));
ExtractedRow = YourMatrix(maxidx,:);
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!