필터 지우기
필터 지우기

How can I use the FINDPEAKS function in the Signal Processing Toolbox 6.8 (R2007b) to find flat peaks?

조회 수: 33 (최근 30일)
The FINDPEAKS function does not consider peak points to be valid unless they are strictly greater than the immediately neighboring points.
Reproduction Steps:
good = [ 1 2 3 4 5 6 7 6 5 4 3 2 1]; % peak at 7
findpeaks(good) % this will return a value of 7
bad = [ 1 2 3 4 5 6 6 5 4 3 2 1]; % adjacent peaks at 6
findpeaks(bad) % this will return null []
I would like to be able to find flat tops (where the peak value is repeated a few times) using the FINDPEAKS function.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
The ability to find peaks where the peak value occurs more than once is not available with FINDPEAKS function in Signal Processing Toolbox 6.6 (R2007b).
There are no workarounds.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

제품


릴리스

R2007b

Community Treasure Hunt

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

Start Hunting!

Translated by