Find peaks in a for loop?
Mostrar comentarios más antiguos
i have a 1007x94 matrix, how would I write a for loop to find the peak in every row?
Respuesta aceptada
Más respuestas (1)
Assuming you mean maximum when you say peak.
a = randi(20, 2,10)
result = max(a,[],2)
1 comentario
Troth
el 26 de Oct. de 2022
Categorías
Más información sobre Correlation and Convolution en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!