MATLAB Answers

EM
0

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

Asked by EM
on 12 Sep 2019
Latest activity Answered by Jos (10584)
on 12 Sep 2019
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?

  0 Comments

Sign in to comment.

1 Answer

Answer by Jos (10584)
on 12 Sep 2019
 Accepted Answer

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

  0 Comments

Sign in to comment.