I have been using the 'prctile' function in MATLAB R2017b to find certain percentiles of my data. I am wondering if there is a way to automatically return the values that constitute these percentiles.
For example, I am getting the 10th, 20th and 30th percentiles of my data by the following line:
>> p10 = prctile(data, [10 20 30]);
How can I extract the values of 'data' that are in each of these percentiles?
Best Answer