The simplest way to do it is probably to use a quantile:

a=[5 3 2 1.5 1.1 1 0.8 0.25 0.2 0.16]

q = quantile(vec(a),0.1)

a = a[1:cut] 


Reply via email to