How to Find Prominence of Peaks

조회 수: 75 (최근 30일)
Ephraim Bryski
Ephraim Bryski 2021년 3월 2일
답변: William Rose 2021년 3월 2일
Hi. I have a time series graph and I would like to find peaks as well as how prominent those peaks are. I know I can use findpeaks() with the 'MinPeakProminence' argument to find peaks with a minimum prominence, but is there a way of finding the prominence of those peaks without just iterating the function call each time with a different 'MinPeakProminence' value? Thanks.

채택된 답변

William Rose
William Rose 2021년 3월 2일
Yes, the prominence is the fourth (and optional) output argument of findpeaks().
[pks,locs,w,p]=findpeaks(Data);
returns the prominences in p.
[pks,locs,w,p]=findpeaks(Data,'MinPeakProminence',1000);
finds peaks with prominence >=1000 and returns the prominences in p.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by