Extract 5 highest value of a vector

2 次查看(过去 30 天)
If I want to extract the indices of the 5 highest value of a avg vector (30x1 for example) how can I do?
ind = find(avgDE... )

采纳的回答

Andrei Bobrov
Andrei Bobrov 2014-2-26
编辑:Andrei Bobrov 2014-2-26
[a,ii] = sort(avgDE,'descend');
outidx = ii(1:5);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by