image thumbnail

Localpeaks

version 1.7.0.0 (150 KB) by Christopher Hummersone
Find local peaks or troughs in a vector

3.1K Downloads

Updated 05 May 2018

From GitHub

View license on GitHub

NOTE: this function is now available from the IoSR Matlab Toolbox as iosr.dsp.localpeaks.
-------------------------
LOCALPEAKS Find local peaks and troughs in a vector

SYNTAX

peaks = localpeaks(X)
peaks = localpeaks(X,MODE)


DESCRIPTION

peaks = localpeaks(X) locates the local peaks in vector X.

peaks = localpeaks(X,MODE) locates local features specified by MODE. MODE can be set to 'peaks' (default), 'troughs' in order to identify local troughs or 'both' in order to identify both local peaks and troughs.

Cite As

Christopher Hummersone (2022). Localpeaks (https://github.com/IoSR-Surrey/MatlabToolbox), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: Peaks picking

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.