필터 지우기
필터 지우기

Finding first 5 maxima and its consecutive minima.

조회 수: 5 (최근 30일)
Jay Vaidya
Jay Vaidya 2020년 11월 19일
댓글: Walter Roberson 2020년 12월 18일
I have the signal in the plot which is zoomed in a time window to show the peaks. I want to find not only the maxima (I did this using
findpeaks()
) but also it's consecutive minimas. Meaning, the first 5 maximas and the two minimas around each first 5 maxima.
I am not able to find minimas. I tried inverting the signal and using findpeaks(), but still merging it with the data of maximas in order is something that I am still not able to do. Can I find maximas and minimas using diff() or derivative rise and fall and store the positions in sequence in one flow?
  댓글 수: 1
Walter Roberson
Walter Roberson 2020년 12월 18일
findpeaks() on the negative of the signal to find minima.

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

채택된 답변

Swetha Polemoni
Swetha Polemoni 2020년 11월 23일
편집: Swetha Polemoni 2020년 11월 23일
Hi Jai Vaidya,
You can use "islocalmin" to find minima.
Here is an example that uses "findpeaks" to find minima.
Hope this helps.

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by