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 CenterFile Exchange에서 Probability Density Functions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by