Borrar filtros
Borrar filtros

How can i link same index of two vectors vectors?

1 visualización (últimos 30 días)
AlexDp
AlexDp el 11 de Sept. de 2019
Comentada: AlexDp el 11 de Sept. de 2019
Hi all,
i have these data:
A= [a; b; c]; %a, b c are row vectors 1x365
V=var(A');
M= mean(A');
G=max(V)
I'd like to know how can i obtain the value of "M" corresponding of index max(V). The idea is: M(index of max(V))=value.
I hope someone can help me. Thanks!

Respuesta aceptada

madhan ravi
madhan ravi el 11 de Sept. de 2019
[~,index]=max(V);
Value = M(index)

Más respuestas (0)

Categorías

Más información sobre Programming en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by