# HG changeset patch # User luisf # Date 1332258742 0 # Node ID f3b6ddd2f04f0b4f85bdc39afa0a3caf5f3df86c # Parent 751fa3bddd3038b6672a3e353e9a4dbb3ec8ae9c checks if the variable SMALL_path exists, and exits otherwise. diff -r 751fa3bddd30 -r f3b6ddd2f04f util/SMALL_learn.m --- a/util/SMALL_learn.m Tue Mar 20 14:28:51 2012 +0000 +++ b/util/SMALL_learn.m Tue Mar 20 15:52:22 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 diff -r 751fa3bddd30 -r f3b6ddd2f04f util/SMALL_solve.m --- a/util/SMALL_solve.m Tue Mar 20 14:28:51 2012 +0000 +++ b/util/SMALL_solve.m Tue Mar 20 15:52:22 2012 +0000 @@ -20,6 +20,10 @@ global SMALL_path +if (isempty(SMALL_path)) + error('SMALL_solve:varChk', '\nSMALL_path variable is not set... Please run SMALLboxInit and try again.\n\nExiting now...\n'); +end + if isa(Problem.A,'float') A = Problem.A; SparseLab_A=Problem.A;