• Scientific Computing | SciVision

  • Blog
  • Tags
  • Categories

Python findpeaks find maxima

20 November, 2015

SciPy argrelmax is a Python function that works like Matlab’s “findpeaks” checkout Discussion of Python vs. Matlab vs. Octave with code.

Python Matplotlib line plot

Python findpeaks()

Compare Matlab & Octave peak finding:

  • Python demo_findpeaks.py
  • Octave, and Matlab demo_findpeaks.m.

The example does not demonstrate the need to filter the data in the case of highly noisy data, which may be accomplished with a Savitzky-Golay filter.

data with peaks highlighted in Matlab

Matlab findpeaks().

  • matlab
  • python