MATLAB Answers

How to find index with findpeaks?

조회 수: 64(최근 30일)
JamJan
JamJan 2019년 9월 2일
편집: Stephen 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?

채택된 답변

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

추가 답변(0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by