Mercurial > hg > smallbox
view toolboxes/alps/ALPS/thresh.m @ 236:5f4e47b78f2b ver_2.0_alpha1
Added example.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Thu, 19 Apr 2012 17:59:08 +0100 |
parents | 0de08f68256b |
children |
line wrap: on
line source
function x= thresh(x, K) [~, ind] = sort(abs(x), 'descend'); x(ind(K+1:end))= 0;