How can I keep the highest N% values of a data set?

2 ビュー (過去 30 日間)
EM
EM 2019 年 9 月 12 日
回答済み: Jos (10584) 2019 年 9 月 12 日
Hi everyone,
I have a data set in one column and defined number of rows. How can I keep the top 10% of these values?

採用された回答

Jos (10584)
Jos (10584) 2019 年 9 月 12 日
Use MAXK:
Y = maxk(X, ceil(N * numel(X) / 100))

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProbability Density Functions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by