How to find local peaks of plot? How to smooth data?

4 visualizaciones (últimos 30 días)
Jason
Jason el 5 de Jun. de 2014
Editada: Star Strider el 5 de Jun. de 2014
I'm looking to find the peak position of a data plot, to determine the distance between corresponding peaks. Also, I'd like to try smoothing the plot beforehand. Attached is an example of a plot I'm assessing.

Respuestas (2)

Star Strider
Star Strider el 5 de Jun. de 2014
The plot hasn’t appeared.
If you have the Signal Processing Toolbox, consider the findpeaks function. It should do essentially everything you need.
  2 comentarios
Jason
Jason el 5 de Jun. de 2014
And if I don't have that toolbox? Sorry, I'm extremely new to MATLAB.
Star Strider
Star Strider el 5 de Jun. de 2014
Editada: Star Strider el 5 de Jun. de 2014
Without findpeaks you could write your own functions or search the File Exchange.
The way to find out if you have the Signal Processing Toolbox is to type in the MATLAB Command Window:
which findpeaks -all
If that comes up with one or more files in the core MATLAB directories (not user directories), you have the function and probably the complete toolbox.
The Signal Processing Toolbox can also help you smooth your data by filtering the high-frequency noise out of it. You mentioned smoothing as well, so I would investigate that.

Iniciar sesión para comentar.


José-Luis
José-Luis el 5 de Jun. de 2014
Then look in the file exchange:

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by