Find peaks in a for loop?
Show older comments
i have a 1007x94 matrix, how would I write a for loop to find the peak in every row?
Accepted Answer
More Answers (1)
Assuming you mean maximum when you say peak.
a = randi(20, 2,10)
result = max(a,[],2)
Categories
Find more on Correlation and Convolution in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!