Exclude last sample as peak despite being the maximum
Mostrar comentarios más antiguos
The first sample is excluded despite being the maximum in findpeaks(). How to exclude the last peak?

1 comentario
Adam
el 20 de Oct. de 2015
Assuming you mean the peak that comes with the final sample can't you just delete the last peak from the list of peaks that get found? It may need a test to check the peak location is equal to the last index as it may be a trough instead in some cases, but that depends on your data.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Descriptive Statistics 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!