annotate toolboxes/alps/ALPS/thresh.m @ 225:f0441ef3ae8f danieleb

Updating this branch in order to reflect the default branch.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Thu, 12 Apr 2012 13:53:23 +0100
parents 0de08f68256b
children
rev   line source
ivan@154 1 function x= thresh(x, K)
ivan@154 2
ivan@154 3 [~, ind] = sort(abs(x), 'descend');
ivan@154 4 x(ind(K+1:end))= 0;