フィルターのクリア

Find range of values where 80% lies

2 ビュー (過去 30 日間)
Somto Dibiaezue
Somto Dibiaezue 2018 年 5 月 4 日
コメント済み: Somto Dibiaezue 2018 年 5 月 11 日
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 件のコメント
jonas
jonas 2018 年 5 月 4 日
編集済み: jonas 2018 年 5 月 4 日
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 2018 年 5 月 11 日
Thanks a lot

サインインしてコメントする。

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by