How to find local peaks of plot? How to smooth data?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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.
0 comentarios
Respuestas (2)
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
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.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!