how to find max of a column and run it in a loop
12 ビュー (過去 30 日間)
古いコメントを表示
device=[1 2 3 4 5 6 7 8 9 10]
block=[1 10;2 11;3 7;4 13;5 14]
new=block(block(:,1) == max(block(:,1)),:)
how to run this max value finding in a loop and display with adding elemnt from device array? like after first find output will be 1 5 14 and last output will be 5 3 7.
5 件のコメント
採用された回答
madhan ravi
2020 年 7 月 3 日
編集済み: madhan ravi
2020 年 7 月 3 日
C = sortrows(block, 2, 'descend') %?
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!