Aktualisiert
29. Dez 2021
The detect_peaks algorithm uses rising and falling counters to assign a risingState with user-provided thresholds. Rising count is independent of falling count. A peak is detected when enough rising counts, then falling counts have successfully been detected.
The detect_peaks_with_rise algorithm is the same as detect_peaks except an additional constraint is added before detection. The total rise from the previous peak must be greater than a certain percentage of the total data range. This reduces chances of multiple unwanted repeated peaks. Drops in the data since the last detected peak is incorporated.
A simple Infinite Impulse Repsonse (IIR) filter is included and helpful with noisy data but not always necessary.
Four experimental datasets are provided that illlustrate both algorithms:
- sinuisoidal, or periodic
- constant but noisy data with 3 successive peaks
- rising, stair-step sequence A
- rising, stair-step sequence B
Kompatibilität der MATLAB-Version
Erstellt mit
R2021a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.