How can i link same index of two vectors vectors?

1 次查看(过去 30 天)
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!

采纳的回答

madhan ravi
madhan ravi 2019-9-11
[~,index]=max(V);
Value = M(index)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by