how to detect index of the max amplitude?

1 vue (au cours des 30 derniers jours)
benghenia aek
benghenia aek le 1 Fév 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

Réponse acceptée

Andrei Bobrov
Andrei Bobrov le 1 Fév 2019
[out,ii] = max(A);
out_ind = index(ii);

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by