why does findpeaks detects minimas?
Mostrar comentarios más antiguos
I got the data of an acceleration sensor and I want to detect only the local maximas, I used
plot(data);
findpeaks(data);
but it also detected the minimas, but why?
With
findpeaks(data,'MINPEAKHEIGHT',2);
it worked as I expected the function to work, but I can't use 2 as a static threshold for my application. Did I something wrong, that it also detects the minimas or do I have to find a way to implement an adaptive threshold?

Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Propagation and Channel Models en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!