diff DL/RLS-DLA/SMALL_rlsdla.m @ 65:55faa9b5d1ac

(none)
author idamnjanovic
date Wed, 16 Mar 2011 13:41:02 +0000
parents 6416fc12f2b8
children a02503d91c8d
line wrap: on
line diff
--- a/DL/RLS-DLA/SMALL_rlsdla.m	Tue Mar 15 15:30:54 2011 +0000
+++ b/DL/RLS-DLA/SMALL_rlsdla.m	Wed Mar 16 13:41:02 2011 +0000
@@ -107,7 +107,7 @@
 % Training data
 
 data=X;
-
+cnt=size(data,2);
 %
 
 C=(100000*thresh)*eye(dictsize);
@@ -115,7 +115,7 @@
 u=zeros(dictsize,1);
 
 
-for i = 1:size(data,2)
+for i = 1:cnt
 
    if (codemode == CODE_SPARSITY)
         w = ompmex(D,data(:,i),[],[],thresh,1,-1,0);