how to detect index of the max amplitude?

3 Ansichten (letzte 30 Tage)
benghenia aek
benghenia aek am 1 Feb. 2019
Beantwortet: Andrei Bobrov am 1 Feb. 2019
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

Akzeptierte Antwort

Andrei Bobrov
Andrei Bobrov am 1 Feb. 2019
[out,ii] = max(A);
out_ind = index(ii);

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by