Mercurial > hg > smallbox
view toolboxes/alps/ALPS/thresh.m @ 208:36b02a8d0add luisf_dev
merge
author | bmailhe |
---|---|
date | Wed, 21 Mar 2012 14:13:31 +0000 |
parents | 0de08f68256b |
children |
line wrap: on
line source
function x= thresh(x, K) [~, ind] = sort(abs(x), 'descend'); x(ind(K+1:end))= 0;