Find peaks in a for loop?
显示 更早的评论
i have a 1007x94 matrix, how would I write a for loop to find the peak in every row?
采纳的回答
更多回答(1 个)
Assuming you mean maximum when you say peak.
a = randi(20, 2,10)
result = max(a,[],2)
类别
在 帮助中心 和 File Exchange 中查找有关 Descriptive Statistics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!