MATLAB: How to keep the highest N% values of a data set data setdectilequantilerank 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? Best Answer Use MAXK:Y = maxk(X, ceil(N * numel(X) / 100)) Related SolutionsMATLAB: How can i sort all the rows of a matrix but one along a row b=[a(:,1),sortrows(a(:,2:end),4,'descend')]; MATLAB: Highest frequency Please try the mode function: x = mode(A);HTH. Related QuestionHow to change string to number in excel fileSortingSelecting the highest valueHow to sort first column of matrix of numbers by shifting the rowsHighest power of 2 that divides n.
Best Answer