how to detect index of the max amplitude?

조회 수: 1 (최근 30일)
benghenia aek
benghenia aek 2019년 2월 1일
답변: Andrei Bobrov 2019년 2월 1일
Hello
I have vector and his index
A=[-0.0796 -0.0937 -0.0326 0.1182 -0.1510]
index=[4 9 13 17 24]
how to detect the index of the max?
max=0.1182
index= 17

채택된 답변

Andrei Bobrov
Andrei Bobrov 2019년 2월 1일
[out,ii] = max(A);
out_ind = index(ii);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by