Find peaks in a for loop?
Ältere Kommentare anzeigen
i have a 1007x94 matrix, how would I write a for loop to find the peak in every row?
Akzeptierte Antwort
Weitere Antworten (1)
Assuming you mean maximum when you say peak.
a = randi(20, 2,10)
result = max(a,[],2)
1 Kommentar
Troth
am 26 Okt. 2022
Kategorien
Mehr zu Descriptive Statistics finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!