how to detect index of the max amplitude?

1 visualización (últimos 30 días)
benghenia aek
benghenia aek el 1 de Feb. de 2019
Respondida: Andrei Bobrov el 1 de Feb. de 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

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

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

Start Hunting!

Translated by