diff util/SMALL_learn.m @ 208:36b02a8d0add luisf_dev

merge
author bmailhe
date Wed, 21 Mar 2012 14:13:31 +0000
parents f3b6ddd2f04f
children a986ee86651e
line wrap: on
line diff
--- a/util/SMALL_learn.m	Wed Mar 21 14:12:25 2012 +0000
+++ b/util/SMALL_learn.m	Wed Mar 21 14:13:31 2012 +0000
@@ -21,6 +21,10 @@
 
 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
+
 if (DL.profile)
     fprintf('\nStarting Dictionary Learning %s... \n', DL.name);
 end