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 日

1 投票

Use MAXK:
Y = maxk(X, ceil(N * numel(X) / 100))

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で MATLAB についてさらに検索

質問済み:

EM
2019 年 9 月 12 日

回答済み:

2019 年 9 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by