Mercurial > hg > smallbox
view toolboxes/alps/ALPS/thresh.m @ 210:f12a476a4977 luisf_dev
Added help comments to SMALL_two_step_DL.m
author | bmailhe |
---|---|
date | Wed, 21 Mar 2012 17:25:40 +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;