diff util/SMALL_learn.m @ 216:a986ee86651e luisf_dev

Calls SMALLboxInit in the beginning of both solve and learn, in order not to lose the SMALL_path variable.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Thu, 22 Mar 2012 11:41:04 +0000
parents f3b6ddd2f04f
children fd0b5d36f6ad 198d4d9cee74
line wrap: on
line diff
--- a/util/SMALL_learn.m	Wed Mar 21 18:28:43 2012 +0000
+++ b/util/SMALL_learn.m	Thu Mar 22 11:41:04 2012 +0000
@@ -19,11 +19,7 @@
 %   COPYING included with this distribution for more information.
 %%
 
-global SMALL_path
-
-if (isempty(SMALL_path))
-    error('SMALL_learn:varChk', '\nSMALL_path variable is not set... Please run SMALLboxInit and try again.\n\nExiting now...\n');
-end
+SMALLboxInit
 
 if (DL.profile)
     fprintf('\nStarting Dictionary Learning %s... \n', DL.name);