How to find index with findpeaks?

조회 수: 48 (최근 30일)
JamJan
JamJan 2019년 9월 2일
편집: Stephen23 2019년 9월 2일
I have the following line:
A = findpeaks([75 45 12 94 60 34 30 51 85 95 85 55 53 53 63 28 53 34 28 38], 'MinPeakHeight', 50)
I want to know the indices of A (output of findpeaks). How to find them?

채택된 답변

Stephen23
Stephen23 2019년 9월 2일
편집: Stephen23 2019년 9월 2일
findpeaks has a second output argument with the indices:
[A,idx] = findpeaks(...)

추가 답변 (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