Mercurial > hg > smallbox
view toolboxes/alps/ALPS/thresh.m @ 191:8e0b28405fcb luisf_dev
closing mistaken branch head.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 13 Mar 2012 17:34:10 +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;