Exclude last sample as peak despite being the maximum
Ältere Kommentare anzeigen
The first sample is excluded despite being the maximum in findpeaks(). How to exclude the last peak?

1 Kommentar
Adam
am 20 Okt. 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.
Akzeptierte Antwort
Weitere Antworten (0)
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!