Find peaks in a for loop?
Afficher commentaires plus anciens
i have a 1007x94 matrix, how would I write a for loop to find the peak in every row?
Réponse acceptée
Plus de réponses (1)
Assuming you mean maximum when you say peak.
a = randi(20, 2,10)
result = max(a,[],2)
1 commentaire
Troth
le 26 Oct 2022
Catégories
En savoir plus sur Correlation and Convolution dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!