Mercurial > hg > smallbox
diff DL/Majorization Minimization DL/ExactDicoRecovery/modcn_exactRec_demo.m @ 164:4205744092e6 release_1.9
Merge from branch "ivand_dev"
author | Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk> |
---|---|
date | Wed, 07 Sep 2011 14:17:30 +0100 |
parents | b14209313ba4 |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DL/Majorization Minimization DL/ExactDicoRecovery/modcn_exactRec_demo.m Wed Sep 07 14:17:30 2011 +0100 @@ -0,0 +1,20 @@ +function modcn_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] = mod_cn(x,Phi,lambda,IT); + +save(['MODl1',num2str(M),'t',num2str(IT),'ikiun',num2str(K),'v1d',num2str(SN),'.mat'],'Phi','Phid','x','ud','unhat','ert') + +toc