How to find the first local max in a discrete signal?
이전 댓글 표시
I have the .mat data in workspace.(time and magnitude) I wanted to find the first local max in signal and its related time . can anyone help me? thank you very much.
채택된 답변
추가 답변 (1개)
vahid torabi
2014년 8월 19일
0 개 추천
댓글 수: 2
Adam
2014년 8월 19일
This is one of the difficulties with peak finding algorithms. If you take a look at your raw data then the first peak is in fact at an index of 3 and with the value given. The problem is that this is not what we as humans consider to be a "significant" peak, it is more an anomaly of the data that the point immediately after that one decreases slightly before increasing again significantly thereafter.
If you are using findpeaks, take a look at the Name-Value Pair Arguments from the help page. These give options that allow you to tweak the sensitivity of what counts as an actual peak.
The peakfinder from matlab exchange will have similar options (they may even be the defaults) but I haven't used that myself so I'm not sure what its parameterisations are.
vahid torabi
2014년 8월 19일
카테고리
도움말 센터 및 File Exchange에서 Descriptive Statistics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!