how to detect index of the max amplitude?

1 visualizzazione (ultimi 30 giorni)
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

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

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

Start Hunting!

Translated by