how to find max of a column and run it in a loop
1 次查看(过去 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.
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!