Find range of values where 80% lies

11 visualizaciones (últimos 30 días)
Somto Dibiaezue
Somto Dibiaezue el 4 de Mayo de 2018
Comentada: Somto Dibiaezue el 11 de Mayo de 2018
Hi,
I've got gradually changing data set in an array, and I'm trying to find the threshold where 80% of the data lies below and hopefully get the corresponding indices. A Gaussian distribution takes it about the mean but using this will also most definitely remove the "good" data.
The picture shows an example were I'm trying to eliminate data < 1.35(red x-axis). There seems to be loads of other distributions but the information is overwhelming. Would be helpful if someone can point in the right direction.
Thanks.
  3 comentarios
jonas
jonas el 4 de Mayo de 2018
Editada: jonas el 4 de Mayo de 2018
Perhaps I'm misunderstanding the issue. Why don't you just find the 20th percentile and remove all values below that?
th=prctile(xdata,20)
xdata(xdata<th)=[];
ydata(xdata<th)=[];
Somto Dibiaezue
Somto Dibiaezue el 11 de Mayo de 2018
Thanks a lot

Iniciar sesión para comentar.

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by