how to detect peak and index?

I have vector A
A=[1 2 5 4 9 nan nan 9 0 23 12 nan nan nan 6 2 23 5 12 29];
i need to detect peak for each segment and his index
peak=[5 23 23]
index=[3 10 17]

답변 (0개)

이 질문은 마감되었습니다.

질문:

2019년 1월 31일

마감:

2019년 2월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by