Mercurial > hg > smallbox
view DL/Majorization Minimization DL/ExactDicoRecovery/ksvd_exactRec_demo.m @ 214:b9b4dc87f1aa luisf_dev
Additional help comments in ~/DL/Majorization Minimization DL/wrapper_mm_DL.m.
author | Aris Gretsistas <aris.gretsistas@elec.qmul.ac.uk> |
---|---|
date | Wed, 21 Mar 2012 18:27:23 +0000 |
parents | b14209313ba4 |
children |
line wrap: on
line source
function ksvd_exactRec_demo(it,k,sn) tic IT = it; K = k; SN = sn; if SN<10, samnum = ['0',num2str(SN)]; else samnum = num2str(SN); end load(['Param',num2str(K),'kS',samnum,'.mat']) lambda = 2*.2; % 2 * Smallest coefficients (Soft Thresholding) %%%%%%%%% Phi = Phio; M = size(Phi,1); [Phi,unhat,ert] = ksvd_cn(x,Phi,lambda,IT); save(['KSVDl1',num2str(M),'t',num2str(IT),'ikiun',num2str(K),'v1d',num2str(SN),'.mat'],'Phi','Phid','x','ud','unhat','ert') toc