comparison toolboxes/alps/ALPS/thresh.m @ 154:0de08f68256b ivand_dev

ALPS toolbox - Algebraic Pursuit added to smallbox
author Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk>
date Fri, 12 Aug 2011 11:17:47 +0100
parents
children
comparison
equal deleted inserted replaced
153:af307f247ac7 154:0de08f68256b
1 function x= thresh(x, K)
2
3 [~, ind] = sort(abs(x), 'descend');
4 x(ind(K+1:end))= 0;