Mercurial > hg > smallbox
view toolboxes/alps/ALPS/thresh.m @ 201:5140b0e06c22 luisf_dev
Added separate dictionary decorrelation
author | bmailhe |
---|---|
date | Tue, 20 Mar 2012 14:50:35 +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;