How to detect multiple peaks on one envelope?

조회 수: 3 (최근 30일)
Chelsea Tanchip
Chelsea Tanchip 2019년 5월 8일
댓글: Star Strider 2019년 5월 9일
I'm trying to count the number of envelopes (cycles) peaks - their single absolute peak - in my signal. I have used findpeaks but it gives me multiple peaks on each envelope. I only want the absolute peak of each envelope.
I can't use minimum peak height or threshold because some envelopes are shorter/softer but need to be calculated in my algorithm. My min peak distance is set to the average distance between the local minima (now my local maxima as I inverted the signal).
  댓글 수: 2
gonzalo Mier
gonzalo Mier 2019년 5월 8일
Why didn't you try to use max or min function in each envelope? If you know the data of each envelope, you can find the highest and the lowest value easily. If there is more complexity behind that, can you try to add more info please?
Star Strider
Star Strider 2019년 5월 9일
Explore the findpeaks documentation to get the prominence value for each peak, then see if setting 'MinPeakProminence' will give you ther result you want. Alternatively, you can use the prominence values returned by findpeaks to index into the findpeaks output.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by