How to find local peaks of plot? How to smooth data?
이전 댓글 표시
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.
답변 (2개)
Star Strider
2014년 6월 5일
0 개 추천
The plot hasn’t appeared.
If you have the Signal Processing Toolbox, consider the findpeaks function. It should do essentially everything you need.
댓글 수: 2
Jason
2014년 6월 5일
Star Strider
2014년 6월 5일
편집: Star Strider
2014년 6월 5일
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.
José-Luis
2014년 6월 5일
0 개 추천
Then look in the file exchange:
카테고리
도움말 센터 및 File Exchange에서 Smoothing and Denoising에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!