Mercurial > hg > smallbox
view toolboxes/alps/ALPS/thresh.m @ 194:9b0595a8478d danieleb
Debugged SMALL_DL_test and added copyright info
author | Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk> |
---|---|
date | Tue, 13 Mar 2012 17:53:46 +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;